was's session management

java web project

The business requirement is to modify the session timeliness to control the login

There are three or four methods on the Internet: 1. Change the session time of the node (console) 2. Change the session time of the project (console) 3. Change the web.xml 4. Change the code

I want to say that directly changing the code is the setMaxInactiveInterval() method. No matter how the first three methods are changed, it has no effect. It may be related to my installation environment. It took more than a day to suspect that the client session was broken and the background was not destroyed. That's why I wasted a lot of time

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324929368&siteId=291194637