A session whose timeout period has been set to -1 will never expire.(Reference page 271, Q3 option A is given correct)
Can someone explain?
My understanding is that if you put 0 or any negative number in setmaxinactiveInterval(0 or -1)...the session dies immediately.
SCJP 1.4 | SCWCD 1.4 | SCJD (WIP)
posted 11 years ago
Hi! According to me, specifying a negative value and not 0 for the setMaxInactiveInterval() method means that the session would NEVER expire. Specifying 0, will immediately expunge the session. I tried it out and it worked as expected.