Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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 Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "time out" Watch "time out" New topic

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

Joined: Mar 22, 2000
Posts: 12911
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.
I agree. Here's the link:
subject: time out