• 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

which case a session is killed ?

 
Ranch Hand
Posts: 316
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I open a browser to access a j2ee application which uses session to store information. if I go from the 1st page to 2nd to 3rd,etc (let's say that's my trip one). Then on the same browser I revisit page 1, at this moment, is the session server created for me during my "trip 1" still valid and available ??

In order to start a new session without being affected by my "trip 1" visit, shall I open a new IE browser, or shall I use "ctrl+N" to open a browser ? which way can guarantee a new session ?
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sessions time out after being idle for a specified number of minutes (30 is the usually the default). Each time you hit the application, the timer is reset.

If you want to guarantee a new sesssion, close your browser and open a new one.

Note: MSIE behaves differently in the respect, depending on how you open a second instance. If you use Ctrl + n or use File -> New from the browser's menu, the second copy will share session information with the first.

If, on the other hand, you start a new instance by clicking the Windows Start button and then clicking on the MSIE launcher, the second instance will have it's own cookie space and maintain a separate session.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic