Read cookie in all open tabs

I have a web application that authenticates against a SQL DB and sets a cookie with credentials like "remember me". Part of the app involves using a bookmarklet to add things to your personal snippet of another DB. This works great if you authenticate and start using the bookmarklet in MOST TABLE. However, if you authenticate and then try to use the bookmarklet on a different tab stop, the system acts as if you were not logged in. I've done everything I can to try and track down this issue. I realize this can be a long shot without posting extensive application code, but does that sound familiar? The cookie is set to "/" so it should be applied anywhere you can roam in the application.

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

+1


source to share


3 answers


I would use the Firefox extension LiveHTTPHeaders to view the headers and check if the cookie was sent.



+1


source


Check the config setting network.cookie.cookieBehavior in FireFox



0


source


Are you setting cookies in JavaScript? If so, it will only be valid for that tab.

-1


source







All Articles