Henning Brune wrote:
> Every server has specific ways to adjust the session timeout.
> You can't do it from the servlet side.
>
This turns out not to be the case.
You can call session.setMaxInactiveInterval() to adjust the timeout for
this particular session, and you can change it as often as you like.
The techniques discussed in other responses to the question describe
setting the default for all sessions unless you change them.
By the way, in a servlet container based on the 2.2 version of the
specification, you adjust the default session timeout by creating a
<session-config> element in your web application deployment descriptor
(web.xml):
<session-config>
<session-timeout>180</session-timeout> // Set to 180 seconds
</session-config>
> > rahul khandelwal wrote:
> >
> > friends,
> > how to increase the session timeout?????????
> > tks in advance..
> > Rahul
Craig McClanahan
___________________________________________________________________________
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