Tomcat Session Timeout web.xml

前端 未结 4 618
日久生厌
日久生厌 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:20

    If your ogjective is to test session expiry, you don't have to wait at all. You application server may offer a way of expiring sessions manually. In Tomcat for example, you can do so through the manager application. Next to each application there's an "Expire sessions" button with a field next to it where you can specify the idle time threshold. All sessions that have been idle for a period above the threshold will be invalidated. To invalidate all sessions simply type in 0 and hit enter; all session will expire regardless of the value in web.xml.

    If you're not using Tomcat, look at the documentation of your application server and you may find a way to do so through the administration console or command line.

提交回复
热议问题