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

Session timeout  RSS feed

 
sreedhar Lackka
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Thanks in advance.
I want to work on some session related stuff and I need help on this.
As every one know we will have some time out for session.
Suppose if I want to keep that session alive for ever what should I do?

Regards,
Sree
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
 
sreedhar Lackka
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot for the reply.
But, If I change web.xml that will applicable for complete application.
However, I want it to be user specific.
Please help me.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at the API for HttpSession - anybody working with servlets should have a copy of the API on their hard disk.

You can set the timeout for an individual session.

setMaxInactiveInterfal( int n )

Where n is in seconds - a negative value means never time out.

Bill
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!