nebu,

  You can use the properties of the session object to test for the time a
session has been inactive.

  See this example from Java Servlet Programming by O'Reilly to see how it
is done:
  http://www.servlets.com/jsp/examples/ch07/ManualInvalidateScan.java

  For timing out after 15 minutes the line:
  Date hourAgo = new Date(System.currentTimeMillis() - 60*60*1000);
  should be changed to:
  Date hourAgo = new Date(System.currentTimeMillis() - 15*60*1000);
  I hope this helps.
Alistair.


> -----Original Message-----
> From: Nebu PM [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, November 09, 2000 11:16 AM
> To:   [EMAIL PROTECTED]
> Subject:      session timing out...
>
> hello friends,
>
> I have a small problem in servlets,
> I want my sessions to be timed out after say 15 minutes of idle activity
> or
> no activity that means, if the clent is not doing any operations for 15
> minutes then his session has to be timed out. Something like that,
> can any help how do we do it in servlets.
>
> thanks in advance.
>
> regards
> nebu
>
> __________________________________________________________________________
> _
> 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