会话超时值被覆盖。设置session值的方法有哪些

Value of session-timeout getting overrided. What are the ways to set the session value

申请有

<session-timeout>30</session-timeout>

设置在web.xml。

我改成了

<session-timeout>2</session-timeout>

在所有 web.xml 文件中。 但是,request.getSession().getMaxInactiveInterval() returns 30 分钟。

setMaxInactiveInterval(int) 未在 Java 的任何地方使用。这可以被覆盖的任何其他方式。使用 Tomcat 服务器。

Hybris 已添加配置 属性 以调整会话超时。

尝试更改 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=3600