A community in which webmasters can ask for help with topics such as PHP coding , MySQL , IT jobs, web design, IT security.
Current location:homephp forumphp talk in 2008 yearHonor a cookie in all open tabs - page 1
User InfoPosts
Honor a cookie in all open tabs#1
I have a web app that authenticates against a SQL DB and sets a cookie with credentials, like a "remember me" sort of thing. Part of the app involves using a bookmarklet to add things into your personal slice of another DB. This works fine if you authenticate and, in the SAME TAB, begin using the bookmarklet. However, if you authenticate and then attempt to use the bookmarklet within another tab instance the system acts as if you're not logged in. I've done everything I can think of to try and track this issue. I realize it might be a long shot without posting extensive app code, but does this sound familiar? The cookie is set for "/", so it should apply to anywhere you may wander within the app.

Firefox and Safari for OS X/ Windows, by the way. Thanks.

posted date: 2008-12-27 12:28:00


Re: Honor a cookie in all open tabs#2
I had made out the solution of this problem. click to view my topic...

hope that hepls.

posted date: 2008-12-27 12:28:01


Re: Honor a cookie in all open tabs#3
I would use the Firefox extension LiveHTTPHeaders to view the headers and verify that the cookie is being sent.

posted date: 2008-12-30 20:38:00


Re: Honor a cookie in all open tabs#4
Are you setting the cookie in JavaScript? If so it'll only be valid for that tab.

posted date: 2009-01-01 12:12:00


Re: Honor a cookie in all open tabs#5
Check the network.cookie.cookieBehavior config setting in FireFox

posted date: 2009-01-02 20:20:00


select page: « 1 »
Copyright ©2008-2017 www.momige.com, all rights reserved.