You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Stephen Charles Huey <st...@fastmail.fm> on 2004/07/15 23:43:40 UTC
session timeout: web.xml and setMaxInactiveInterval(int)
My web.xml has the following:
<session-config>
<session-timeout>30</session-timeout>
</session-config>
However, when a user logs in, the following code in our app gets
executed:
HttpSession session = request.getSession(false);
session.setMaxInactiveInterval(7200);
I've been fiddling with the web.xml and didn't realize that other code
was in there, and I'm wondering who trumps who. I would assume that the
web.xml's global setting would have priority over any individual
setting, but it could easily be the other way around!
Thanks,
Stephen
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org