In which of the following situations will a session be definitely invalidated?(You have to select 3 option)
A:The container is shutdown and brought up again.
B:No request comes from the client for more than "session timeout" period.
C:A
servlet explicitly calls invalidate() on a session object.
D:If the session time out is set to 0 using setMaxInactiveInterval() method.
The answer is BC and D
My Doubt in option D because API specifies that
"A return value of zero or less indicates that the session will never timeout. "