Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Can Container invalidate the session  RSS feed

 
sirisha makkapati
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1.can a container Invalidate the session,If Yes in Which situation i will invalidate.
2.How we can we keep a session will be in active stage forever??
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by sirisha makkapati:
1.can a container Invalidate the session,

It can and does, after the maxInactive period has elapsed.

If Yes in Which situation i will invalidate.
Any time you want to end a session (ie: the user clicks the "Log Off" button.)

How we can we keep a session will be in active stage forever??
By definition, sessions don't last forever.

There is a link to the servlet spec in my signature.
You should read the sections on sessions if you haven't already.
It explains it all very well.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!