This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Servlets and the fly likes servlet timeout values Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet timeout values" Watch "servlet timeout values" New topic
Author

servlet timeout values

kan nat
Greenhorn

Joined: Mar 19, 2009
Posts: 28

Is there a negative value , -1 which will make the session never expire. what i read is session timeout values are specified in seconds.
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

kan nat wrote:
Is there a negative value , -1 which will make the session never expire.

Yes
kan nat wrote:
what i read is session timeout values are specified in seconds.

what you read was Correct

Vishwanath Krishnamurthi
Ranch Hand

Joined: Jun 04, 2007
Posts: 331
kan nat wrote:
Is there a negative value , -1 which will make the session never expire


better put as session will never time out.


Blog
Vishwanath Krishnamurthi
Ranch Hand

Joined: Jun 04, 2007
Posts: 331
kan nat wrote:
what i read is session timeout values are specified in seconds.


If you use setMaxInactiveInterval(int), timeout value would be in seconds yea,

but if you specify in the DD using <session-timeout>, it would be minutes...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: servlet timeout values
 
Similar Threads
session doubt
Forcing Relogin
Handle window close event
How to Handle timeout to save user input
Tomcat saves the sessions even if I stop application!!!