tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Thorhauer <jthorha...@phoenixcolor.com>
Subject Re: Session-Timeout
Date Tue, 22 Feb 2000 13:09:20 GMT
Armin Pfarr wrote:
> 
> I added the lines
> 
>     <session-config>
>         <session-timeout>
>             30
>         </session-timeout>
>     </session-config>
> 
> to my web.xml-file, but still the session gets thrown away after
> approximately 2 minutes

You can set your timeout like this:

int timeout = 3600; // 30 minutes
HttpSession session = request.getSession(true);
session.setMaxInactiveInterval(timeout);


You can check your timeout like this:
session.getMaxInactiveInterval()

-- 
********************************
** John Thorhauer
** Web Developer
** jthorhauer@phoenixcolor.com
********************************

Mime
View raw message