jsp session expiration setting and web.xml configuration learning

  • 2020-06-01 10:48:02
  • OfStack

The expiration time for session needs to be configured in web.xml in tomcat in minutes. The other maximum time seems to be 24 hours, which means that your session expiration time can be set to 1440, but is not valid if set to 1441. (not tested yet)
 
<session-config> 
<session-timeout>480</session-timeout> 
</session-config> 

Related articles: