Tomcat Session Timeout web.xml

前端 未结 4 582
日久生厌
日久生厌 2021-01-01 23:50

This is my web.xml file, it is located in WEB-INF/lib. It specifies session timeout at 1 minute, however it does not time the user out after 1 minute of activit

4条回答
  •  有刺的猬
    2021-01-02 00:21

    1. One minute is a ridiculously low session timeout. It should be several hours.

    2. The timeout happens after that much inactivity, not that much activity.

    3. The correct test is request.getSession(false) == null, or request.getSession(true).isNew().

提交回复
热议问题