This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply 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
Handle window close event
Forcing Relogin
Tomcat saves the sessions even if I stop application!!!
How to Handle timeout to save user input
session doubt