This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Servlets and the fly likes Firefox overwrites other session's (window's) Cookie. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Servlets
Bookmark "Firefox overwrites other session Watch "Firefox overwrites other session New topic

Firefox overwrites other session's (window's) Cookie.

Suresh Gopi
Ranch Hand

Joined: Mar 08, 2007
Posts: 49
Hello Friends,

I'm facing this problem when i test my application using Firefox with (Cookies enabled - default option)

I accessed the App using one instance (window) of firefox and it got Session tracking cookie for the opened page from Server App.

When i open my application in another window\tab the Server sends a new session-tracking cookie for this page the new one overwrites the first windows's session cookie.

If my i test my application with multiple instance of firefox simultaneously, switching between windows randomly then application crashes.

It's not happening for IE.

My question is,
Is Firefox designed to store one 'session tracking' cookie per website\domain?

Is there any solution for this.

Please suggest me.

other Info :

Cookie name - JSESSIONID
App server - Weblogic 8.1
Browser Ver - Firefox 2.x

Note: We didn't implement 'single sign on' fuctionality and our Application is a simple App without any login page.
[ December 10, 2008: Message edited by: Suresh Gopi ]

Regards<br />Suresh
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Yes this is a fairly well known "limitation" of firefox. I put limitation in quotes, because of course, other people think this is the correct thing to do, and that IE and all the others have it wrong.

The solution for FF is to use profiles. Just google for 'Firefox multiple sessions' and you'll see a plethora of pages.
Suresh Gopi
Ranch Hand

Joined: Mar 08, 2007
Posts: 49
Thanks Mike. Thanks a lot for the useful Info.
I agree. Here's the link:
subject: Firefox overwrites other session's (window's) Cookie.
It's not a secret anymore!