> -----Original Message-----
> From: randie ursal [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 03, 2002 7:14 PM
> To: [EMAIL PROTECTED]
> Subject: setting session timeout
>
>
> hi,
>
> is this the only way i can set session timeout on every request?
>
> HttpSession.setMaxInactiveInterval(int interval)
No you can also set the timeout in the your web.xml file.
The session-config element defines the session parameters for this web
application.
<!ELEMENT session-config(session-timeout?)>
Example:
<web-app>
....
<session-config>
<session-timeout>30</session-timeout>
</session-config>
.....
</web-app>
But if you specify the session timeout both in the code and also in web.xml
file then the one in the code will be used, by your container for your
context.
>
> thanks in advance
> randie
Vikram.
>
> ______________________________________________________________
> _____________
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
> http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html