File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes same session across browsers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic

same session across browsers

Rizwan Mohammad
Ranch Hand

Joined: Sep 02, 2005
Posts: 445
I am trying to access one of my applications in websphere server. But I am facing one strange problem here.
Though I open two different instances of browser(not by Ctrl+N or popup) both are using same session.
When I print jsessionid cookie and session id values, both browser instances print different jsessionid cookie values
but with same session id. How can this scenario be possible? With this scenarios, my session values aree getting messed up
from both browsers.
Here i am displaying session id and jsession cookie values from both browsers.

From browser 1:
jsessionid cookie value = 0000APUj7MW7vLTX3SMMeXZgwrf:11c2ij3kd
session.getID() = FYf00DbhZASZXhr4HLSO40K

From browser 2:

jsessionid cookie value = 0000FYf00DbhZASZXhr4HLSO40K:11c2ij3kd
session.getID() = FYf00DbhZASZXhr4HLSO40K

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63844

Please continue this issue in your previous topic on bross-browser sessions.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: same session across browsers
It's not a secret anymore!