应用程序
<session-timeout>30</session-timeout>
设置在web.xml中。
我把它改成了
<session-timeout>2</session-timeout>
在所有的web.xml文件中。但是,request.getSession().getMaxInactiveInterval()仍然返回30分钟。
setMaxInactiveInterval(int)在Java中任何地方都没有使用。任何其他的方法都可以被推翻。使用。
发布于 2016-06-08 15:08:27
已添加配置属性以调整会话超时。
尝试更改local.properties文件中的属性。
default.session.timeout = 120您可以在platform/project.properties文件中检查默认值。
# The default session timeout (in seconds).
# If you specify 0 or less, the session will never timeout
default.session.timeout=3600https://stackoverflow.com/questions/37678277
复制相似问题