Page 1 of 1

firefox storing cookies in odd way.

Posted: Thu Feb 10, 2005 4:35 pm
by tores
Hi

Have a problem with Firefox: When opening a new tab or browser when another exists, the new tab or browser contains the same session-cookie as the first one. So to really get a new cookie I need to close all firefox-windows and then open a new one.
If I could tell when my index-script where loaded for the first time (in a new browser or tab) I could just re-assign the session_id each time.
Can this be achieved in any way?

regards tores

Posted: Thu Feb 10, 2005 5:12 pm
by timvw
you can have a page that calls session_regenerate_id....

Posted: Thu Feb 10, 2005 5:33 pm
by feyd
that's also switch the previous tab to the new session id as well however.

Posted: Thu Feb 10, 2005 5:46 pm
by tores
that's also switch the previous tab to the new session id as well however.
That's true.... Firefox only keeps one session_id for all open windows and tabs. Altering the id in one window/tab also alters it for the others.
This is a really annoying feature of firefox!

Posted: Thu Feb 10, 2005 5:56 pm
by feyd
that's pretty true for all browsers.. (sessions/cookies span all instances)

Posted: Thu Feb 10, 2005 6:43 pm
by tores
that's pretty true for all browsers.. (sessions/cookies span all instances)
Not IE. Starting a new explorer while another is running gives a new session_id, independent of the other.

Posted: Thu Feb 10, 2005 6:47 pm
by timvw
If you open the window with ctrl+n in IE the session will be shared. If you start a new iexplore.exe process, it doesn't share the session.



ps: IE is not a browser, it's an Operating System.... Before i used to think that it was win32 port of emacs :P

Posted: Thu Feb 10, 2005 6:48 pm
by feyd
tores wrote:Not IE.
Only if it's creating a new process; i.e. Start > Internet Explorer. Opening a new window, last I checked did not do this behaviour..