server.session-timeout seems to be working only for embedded tomcat.
server.session-timeout
I put a log statement to check the session max interval time. After deploying the
In your application.properties
#session timeout (in secs for spring, in minutes for tomcat server/container) server.session.timeout=1
I tested it and is working! It turns out that tomcat take the property in minutes