• 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

Servlets HttpSession

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How can I ensure that when a user opens up a new browser window, my servlet will create a new corresponding HttpSession.
Thanks in advance.
Roy
 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can't. Sorry.
 
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"roy rogers"- two things...
1st thing:
Welcome to the JavaRanch! We like to keeep a nice professional image here at the JavaRanch (despite the big one-eyed moose). Please adjust your displayed name to match the JavaRanch Naming Policy.
You can change it here.
2nd thing:
just to expand on Chris' reply -- it all depends on the browser and HOW the user creates this new window. If you open multiple Internet Explorer windows by double clicking on the IE icon -- each window will have a different Session ID. However if you use Ctrl+N to open a new window -- the two will have the same Session ID. No matter how you open a new Netscape window -- the windows will share a Session ID.
It's a browser issue, you have no control over it.
Hope that helps... Thanks in advance for fixing your displayed name and again welcome to the JavaRanch!
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic