Springboot app session timeout

后端 未结 5 1301
北荒
北荒 2021-01-04 11:12

I have created a SpringBoot MVC/Security app 1.2.2.RELEASE and my application.properties contains server settings like

#Tomcat port and contextPath details
s         


        
5条回答
  •  爱一瞬间的悲伤
    2021-01-04 11:37

    You can try with adding this both statements.

    server.session.cookie.max-age=120
    server.session.timeout=120
    

    You can find complete example on my blog here: http://www.onlinetutorialspoint.com/spring-boot/how-to-set-spring-boot-tomcat-session-timeout.html

提交回复
热议问题