This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Servlets and the fly likes Setting Session time out Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Setting Session time out" Watch "Setting Session time out" New topic
Author

Setting Session time out

saravana kumar
Ranch Hand

Joined: Jun 25, 2002
Posts: 72
hi friends,

how to set the session life time? in my application i want to make session is active when the user signed in .then i want to deactive my seesion when he logout. how to keep the session object as long as alive?
please send me reply ...
saran
Harpartap Singh
Greenhorn

Joined: Sep 14, 2002
Posts: 23
One way to find out about "session timeout" is by doing a search in javaranch forums.
Well here is a sample session timeout discussion for you.
And about creating/destroying sessions - request.getSession(true) will create one for you and HttpSession.invalidate() will destroy it for you.
/hs


<blockquote><font size="1" face="Verdana, Arial">quote:</font><hr>Lance Armstrong: "What am I on? I'm on my bike, busting my ass six hours a day. What are you on?"<hr></blockquote>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Setting Session time out