Search code examples
javaspring-bootsessiontomcat9httpsession

Tomcat logout session


I have the problem, that the tomcat server logout every hour all active sessions, by a spring boot application. Nothing happends, if i set the session time out in the web.xml file.

<session-config>
    <session-timeout>1080</session-timeout>
</session-config>

Also nothing happends, if i set the timeout in the application.yml file.

server:
  servlet:
    session:
      timeout: 1080m

Is there any other option to increase the session timeout?


Solution

  • I've found the problem. If i use spring boot version 2.3.8.RELEASE the session timeout config works. But if i use the newest version, then the session timeout not work. If send a bug report.