The session will never time out itself. It will be timed out by the
container.

Again, the documentation contains useful information :

getMaxInactiveInterval
public int getMaxInactiveInterval()
Returns the maximum time interval, in seconds, that the servlet container
will keep this session open between client accesses. After this interval,
the servlet container will invalidate the session. The maximum time interval
can be set with the setMaxInactiveInterval method. A negative time indicates
the session should never timeout.
Returns:
an integer specifying the number of seconds this session remains open
between client requests

According to this, bound object will be notified when the session is
invalidated by the container.

Pierre-Yves

-----Message d'origine-----
De : A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]De la part de
Nitin Tomer
Envoyé : mercredi 4 avril 2001 15:14
À : [EMAIL PROTECTED]
Objet : Re: Session Invalidate


how can I call a method when the session is timed out itself.

nitin
----- Original Message -----
From: "Saumont Pierre-Yves" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 04, 2001 6:02 PM
Subject: Re: Session Invalidate


> >From the Servlet documentation :
>
> invalidate
> public void invalidate()
> Invalidates this session and unbinds any objects bound to it.
>
> So any bound objetct is notified.
>
> Pierre-Yves
>
> -----Message d'origine-----
> De : A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]De la part de
> Nitin Tomer
> Envoyé : mercredi 4 avril 2001 13:39
> À : [EMAIL PROTECTED]
> Objet : Session Invalidate
>
>
> Hi All,
>
> Is there any event triggered when the HttpSession is invalidated (I want
to
> do cleaning operations when the session is timed out)?
>
> TIA
>
> Nitin
>
>
___________________________________________________________________________
> 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

___________________________________________________________________________
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