tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mike niemaz <nie...@xrce.xerox.com>
Subject Re: How to disable sessions timeout?
Date Mon, 19 Feb 2001 09:35:49 GMT
Filip Hanik wrote:

> really, that doesn't sound right. You have to be able to disable the session
> timeout.
> This is taken from the servlet specification, you can set the timeout to -1
> in web.xml for your web application or do it programatically.

So is -1 doing the trick or the spec are not uptodate?

>
>
> <EXTRACT>
> The default timeout period for sessions is defined by the servlet container
> and can be obtained via
> the getMaxInactiveInterval method of the HttpSession interface. This timeout
> can be
> changed by the Developer using the setMaxInactiveInterval of the HttpSession
> interface. The timeout periods used by these methods is defined in seconds.
> If the timeout period
> for a session is set to -1, the session will never expire.
> </EXTRACT>
>
> <EXTRACT>
>    <!ELEMENT session-timeout (#PCDATA)>
>    <!--
>      The mime-mapping element defines a mapping between an extension
>      and a mime type.
>    -->
> </EXTRACT>
> Filip
>


Mime
View raw message