• 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

Expunge of session objects

 
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Ranchers,

Q) What are the ways in which session object can be expunge?
Q) Do we have any default time out period for session objects if we don't explicilty specify the time-out period either through DD or setMaxInactiveInterval?
 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Akshay,

Session can be invalidated using
invalidate () method in HttpSession.

The default time out period is 30 minutes I think
 
Akshay Singhvi
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This means that session objects can be expunge in 3 ways
a) using invlaidate method
b) if session times out after 30 min. if no explicit time out value is provided by the developer.
c) session times out with the time given explicilty by the developer.

Is there any other way session object can be expunged?
 
Akshay Singhvi
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This means that session objects can be expunge in 3 ways
a) using invlaidate method
b) if session times out after 30 min. if no explicit time out value is provided by the developer.
c) session times out with the time given explicilty by the developer.

Is there any other way session object can be expunged?
 
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Akshay Singhvi:

b) if session times out after 30 min. if no explicit time out value is provided by the developer.



I guess this is vendor Dependant
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic