Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

same session ID in Netscape but not in IE

 
Ed Chawlik
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 569
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic