• 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic