You can also use a cookie to track sessions. If you use a persistent cookie
in combination with a session cookie you can track whether the login is on
the same session or a new session (i.e. whether or not the user closed the
browser).
-----Original Message-----
From: Veronique Dupierris [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 18, 2000 10:00 AM
To: [EMAIL PROTECTED]
Subject: Re: Tracking Sessions!
I'm afraid the only way ti track this, is onky when the session expires !
using the
HttpBinding events, you could know when a sessionn expires (if user logout
and if
you do a session.invalidate or if the session expires on time out) But you
can't
know if the user close the browser or uit your site to visit a another one
since,
maybe, you use an applet on your pages and uses the applet "close" pr
"destroy"
method ..
Regards
Veronique.
MALINI KRISHNAMURTHY a �crit :
> Hi all.
>
> I have a very peculiar problem....I need to allow any user to login
only
> once...
> If the user does a proper logout, then I will be able to track the
> session and allow the user to login again...
> B ut, what if he/she closes the browser?How do I track that???
>
> I am sorry if this is an off the subject question.
>
> Thanks.
>
> Regards
> Malini
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets