This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Setting Session time out

 
saravana kumar
Ranch Hand
Posts: 72
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic