• Post Reply Bookmark Topic Watch Topic
  • New Topic

creating new session manually  RSS feed

 
Susilo Saja
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the scenario:
I'm using ie6. If I open a new window by clicking File-->New-->Window, it will open a new window with the same session as the opener window.
Now in my new window, I go to my login page, and in my login code, I set some value to the session, which will overwrite the value of the session in both window.
But what I actually intend to do is when the new window do the login, I want it to have a new session, so it won't overwrite the session in the first window.
I'm sorry if my explanation is a bit confusing. In short, what I want to do is create new session manually using java code. Is that possible?
 
Corneil du Plessis
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IE may share the session between the two windows depending on how you configure the webserver session handling.
If the session handling uses URL rewriting then IE will maintain separate sessions.
If you have sessionid in cookies the session may be shared because the same cookie is sent from both windows.
 
Susilo Saja
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is interesting. I use tomcat 4. How can I configure the session handling?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!