Setting Session Timeout Programmatically:
Setting Session Timeout Declaratively/Configuratively:
In the web.xml:
HttpSession session = request.getSession();
session.setMaxInactiveInterval(15 * 60); // timeout in seconds
// –1: session never expires, 0: session times out immediately
Setting Session Timeout Declaratively/Configuratively:
In the web.xml:
<web-app ...>
...
<session-config>
<session-timeout>15<session-timeout> <!—Timeout in minutes -->
</session-config>
</web-app>
Session timeout is not termitated.
ReplyDeleteIts the session object/s that get terminated as per the timeout period. There is nothing like Session timeout being terminated.
ReplyDelete