In the Session class:
public void setMaxInactiveInterval(int interval)
Specifies the maximum length of time, in seconds, that the servlet
engine keeps this session if no user requests have been made of the
session.
Parameters:
interval - An integer specifying the number of seconds
John
> A quick question :
>
> Does anybody know if one can specify the lifetime of a session object.
> For example you can do this with cookies, but with sessions I see no
> way to get the undelying cookie object nor an API to set the
> expiration date.
>
> A quick rant :
>
> This is the 3rd time I ask this question !!! If you're reading this
> I've somehow succeded, but other attempts have failed. I sent an email
> as a reply to another thread and it worked, but when I send my own
> topic it's not working, my messages seem to go to /dev/null and not
> get posted :(
>
> Am I being moderated ??? ;)
>
> Thanks
>
> Augusto
>
> ______________________________________________________________
> _____________
> 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