Springboot app session timeout

后端 未结 5 1269
北荒
北荒 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:22

    I don't know for some reason only setting

    server.session.timeout=120 
    

    didn't work for me however, when I set both session timeout and cookie max age like below:

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

    it works perfectly

提交回复
热议问题