Miss,
     Two ways of finding out.
     First ...every user has a Session Object. The time of survival for
this object is set by the Web Administrator. Default value is 30 minutes.
After 30 minutes, the user's Session Object is reclaimed by the JVM for
memory. User's session object becomes  'null' then.

     Second....whenever the user exits out of the web-browser, the session
object is automatically made null.

So if you encounter a 'null' session object then it is a safe bet that the
user has logged out/timed out .
Hope this helps.

Amar..






Revathy Ravi <[EMAIL PROTECTED]> on 03/30/99 01:41:50 AM

To:   Amarnath Nanduri/IT/VANCPOWER
cc:   [EMAIL PROTECTED]
Subject:  Re: How to do time out operation using servlets






hello Amarnath,
How to findout whether a user has logged out or not?"




  Revathy R.


---------------------------------------------------------------------------
-



On Mon, 29 Mar 1999, Amarnath Nanduri wrote:

> Maybe use Session Tracking. Once the user logs out ( or times out),
remove
> the session and close your database connections.
> Everytime a user logs in, create a new session. Hope this helps. Correct
me
> if i am wrong.
>
> Amar..
>
>
>
>
>
> Revathy Ravi <[EMAIL PROTECTED]> on 03/29/99 12:03:45 AM
>
> Please respond to "A mailing list for discussion about Sun Microsystem's
>       Java              Servlet API Technology."
>       <[EMAIL PROTECTED]>
>
> To:   [EMAIL PROTECTED]
> cc:    (bcc: Amarnath Nanduri/IT/VANCPOWER)
> Subject:  How to do time out operation using servlets
>
>
>
>
> Hello everybody ,
>         I want to close the database operation or delete a user
> information once he logs out of any operation or once his time out
> happens? How to do this? where to look for examples?
>
>
>
>
>   Revathy R.
>
>
___________________________________________________________________________
> 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