jQuery in Action, 2nd edition*
The moose likes JSP and the fly likes How to maintain session for 20 to 30 mimutes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "How to maintain session for 20 to 30 mimutes" Watch "How to maintain session for 20 to 30 mimutes" New topic
Author

How to maintain session for 20 to 30 mimutes

Umesh Kilkile
Greenhorn

Joined: Mar 31, 2010
Posts: 11
Hi,

Can any one suggest maintining session for 20 to 30 minutes using code not in XML.

Thaks,

Umesh
Ananth Chellathurai
Ranch Hand

Joined: Nov 21, 2007
Posts: 349

Why do you want to set the session time out in the JSP?

It should be set in your application server.


Ananth Chellathurai [Walk on software]
Ogeh Ikem
Ranch Hand

Joined: May 13, 2002
Posts: 180
If you don't want to set session timeout in web.xml, you can set session timeout in your HttpSessionListener using the session.setMaxInactiveInterval() method, however, setting in web.xml is preferable.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to maintain session for 20 to 30 mimutes