• Post Reply Bookmark Topic Watch Topic
  • New Topic

Expunge of session objects

 
Akshay Singhvi
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • 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?
 
Chethan Verma
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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?
 
Kishore Balla
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • 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
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!