HttpSession.setMaxInactiveInterval() was added in 2.1, and is also present in
2.2.

Craig


Bing Zhang wrote:

>  session.setMaxInactiveInterval()? Which jsdk are we talking about? In jsdk
> 2.0, which is the only jsdk Jserv supports, there is such API.
>
> It is server specific unless you bypass the HttpSession and construct your
> own cookies and use cookies.setMaxAge(). But once again if users turn off
> the cookie, you are back to square one.
>
> Bing
>
> -----Original Message-----
> From: Craig R. McClanahan
> To: [EMAIL PROTECTED]
> Sent: 4/25/00 8:41 AM
> Subject: Re: session timeout????????
>
> 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

___________________________________________________________________________
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

Reply via email to