Changing the default session timeout of a spring web application

后端 未结 1 1993
心在旅途
心在旅途 2021-01-31 09:27

I have to test a web application that is written by spring and jsp. The default session-timeout for the application is 30 min.

I want to reduce the session-timeout. For

1条回答
  •  走了就别回头了
    2021-01-31 09:37

    Session timeout hierarchy:

    • $tomcat_home/conf/web.xml
    • $your_webapp/WEB-INF/web.xml
    • manual invocation of HttpSession.setMaxInactiveInterval(int)

    Each subsequent entry overrides others above.

    0 讨论(0)
提交回复
热议问题