tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Urban" <jim.ur...@netsteps.net>
Subject RE: Tomcat 4.0 Session Timeout
Date Thu, 20 Sep 2001 13:46:13 GMT
While this is a possible solution, its really a kluge.  Tomcat has (or had)
a means for configuring this externally through the web.xml file.

Jim

-----Original Message-----
From: Jonathan Eric Miller [mailto:jemiller@uchicago.edu]
Sent: Thursday, September 20, 2001 7:59 AM
To: tomcat-user@jakarta.apache.org
Subject: Re: Tomcat 4.0 Session Timeout


I haven't tested this using the configuration files or not, so, I can't
verify whether that's a problem or not, but, failing that, you can use
HttpSession.setMaxInactiveInterval() from within your Web application.
Actually, I should probably test this myself to make sure that it's still
working OK.

Jon

----- Original Message -----
From: "Jim Urban" <jim.urban@netsteps.net>
To: "Tomcat-User" <tomcat-user@jakarta.apache.org>
Sent: Thursday, September 20, 2001 7:15 AM
Subject: FW: Tomcat 4.0 Session Timeout


>
>
> OK, I've spent the 30 minutes browsing the Tomcat 4.0 documentation and I
> can't find it.  How do I set the session time out for a context in Tomcat
> 4.0.  The session time out is defaulting to 18000 seconds (5 hours?).  I
> have tried adding the following to both my context's WEB-INF/web.xml file
> and the $CATALINA_HOME/conf/web.xml file but both are ignored.
>
>   <session-config>
> <session-timeout>300</session-timeout>
>   </session-config>
>
> How do I go about setting the time out to 5 minutes?
>
> Thanks,
> Jim Urban
> Product Manager
> Netsteps Inc.
> Suite 505E
> 1 Pierce Pl.
> Itasca, IL  60143
> Voice:  (630) 250-3045 x2164
> Fax:  (630) 250-3046
>
>
> PS:  Love Tomcat 4.0, it seems really solid!
>



Mime
View raw message