File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes same session ID in Netscape but not in IE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "same session ID in Netscape but not in IE" Watch "same session ID in Netscape but not in IE" New topic
Author

same session ID in Netscape but not in IE

Ed Chawlik
Greenhorn

Joined: Aug 10, 2005
Posts: 16
I have a struts application running on tomcat 5 which issues sessions. When using Netscape 7, and opening the same application in another broswer window, the same session ID is used in both browser windows; unlike IE which actually issues a separate session ID for both browser windows.

I am not sure where the problem lies here: Tomcat, struts, or Netscape? The desired functionality is to have separate session ID for each browser window.

Any advice would be appreciated.
Alec Lee
Ranch Hand

Joined: Jan 28, 2004
Posts: 569
This is a feature of how browser return the cookie containing jsessionid (the one identifying the session id). It got nothing to do with container nor struts.
Ed Chawlik
Greenhorn

Joined: Aug 10, 2005
Posts: 16
Thanks Alec for cllarifying this. Any suggestions on how to code around this.

When a second duplicate session in another browser window is brought up, it can clobber the variables of the original session. This has to be a commonly addressed issue, but I cannot find much information on this.

I know there was a problem with an old version of Netscape 4.7, but this is version 7!

How do struts programmer address this?

Thanks.
Ed Chawlik
Greenhorn

Joined: Aug 10, 2005
Posts: 16
This has got to be a Tomcat setting. I now understand this is a session cookie, stored in memory by the browser. The Tomcat server or struts configuration which determines the setting of the cookie must not be giving the session enough unique information to create a separate session cookie. However, I am still wondering how MS IE is doing it. Is there a way to view session cookies in IE?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: same session ID in Netscape but not in IE