简体   繁体   中英

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

Application has

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

set in web.xml.

I have changed it to

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

in all the web.xml files. But still, request.getSession().getMaxInactiveInterval() returns 30 mintues.

The setMaxInactiveInterval(int) isn't used anywhere in Java. Any other ways this can be over-ridden. Using Tomcat Server.

Hybris has been added configuration property to adjust session timeout.

Try changing the property in local.properties file.

default.session.timeout = 120

You can check the default value in platform/project.properties file.

# The default session timeout (in seconds).
# If you specify 0 or less, the session will never timeout
default.session.timeout=3600

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM