Kief Morris wrote:

> Merwin Yap typed the following on 04:27 PM 2/3/2001 +0800
> >Hi! I want to ask about sessions in tomcat. How do you change the
> >elapsed time for the session to expire.
>
> In your web.xml put:
>
> <session-config>
>     <session-timeout>30</session-timeout>
> </session-config>
>
> Change 30 to the number of minutes that must elapse before the
> server will expire an inactive session.
>

This sets the global default for new sessions created within this webapp.

You can also call session.setMaxInactiveInterval() to change the timeout
for a particular session, at any time.  Note that the value here is in
seconds, rather than minutes.

>
> Kief
>

Craig McClanahan



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to