A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Web Component Certification (SCWCD/OCPJWCD)
Doubt in setMaxInactiveInterval
Joined: Mar 02, 2008
Nov 03, 2008 07:14:00
Which of the following values used with setMaxInactiveInterval() will not cause the session to expunge.
My answers are 1,2,3 but correct answers given are 1,2 why not 3
Joined: Aug 21, 2008
Nov 03, 2008 07:54:00
From the specs:
Specifies the time, in seconds, between client requests before the
container will invalidate this session. A negative time indicates the session should never timeout.
So a zero value will cause the container to immediately expunge the session!
I agree. Here's the link:
subject: Doubt in setMaxInactiveInterval
q on session time out
Keeping Session Alive
Make JSP Page alive
increase session life time
2 Inconsistencies in session-timeout and setMaxInactiveinterval
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014