| Author |
session.setMaxInactiveInterval(int)
|
Milesh Bhana
Greenhorn
Joined: Feb 18, 2010
Posts: 5
|
|
I've noticed a discrepancy with this.
session.setMaxInactiveInterval(0);
HFSJ and Enthuware mock exams say using a value of 0 will immedately invalidate a session.
JEE6 API Javadoc:
Specifies the time, in seconds, between client requests before the servlet container will invalidate this session.
An interval value of zero or less indicates that the session should never timeout.
I tried on tomcat and session stayed alive.
What gives?
|
OCJP6 88%, OCWCD6 92%
|
 |
Frits Walraven
Rancher
Joined: Apr 07, 2010
Posts: 742
|
|
Hi Milesh,
Have a look here
Regards,
Frits
|
 |
 |
|
|
subject: session.setMaxInactiveInterval(int)
|
|
|