• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

creating new session manually

 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is interesting. I use tomcat 4. How can I configure the session handling?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic