permaculture playing cards*
The moose likes Servlets and the fly likes time out Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "time out" Watch "time out" New topic
Author

time out

Raj Joe
Ranch Hand

Joined: Oct 15, 2004
Posts: 41
what are possible ways to time out a user session (http session)

in what way can we invalidate a session,if I use servlet API to invalide,i understand that user session gets killed even before the session time out or even before user closes his browser.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
The servlet container will automatically time-out sessions according to the default time delay (in web.xml) OR a value you set on the individual session.
You can invalidate a session at any time with the invalidate() method.
Bill
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: time out
 
Similar Threads
session
Session timeouts and listeners....
Alert before session ends...
Session Query
Alert user before session timeout