In this tutorials, I am going to show how to set/change Tomcat session timeout in Spring boot application.
Spring Boot Tomcat session timeout :
We should be able to set the server.session.timeout in application.properties or application.yml file.
application.prroperties
server.session.timeout = 5000 // Session timeout in seconds
Most of the cases the above configuration will work, If not you should set the cookie max age along with session time out like below.
application.prroperties
server.session.cookie.max-age=5000
server.session.timeout=5000
Reference :
Happy Learning 🙂