Malini,
I wrote a piece some classes to do that not long ago. If you look in the
archives of this list (TOPIC='RE: session cleanup'). I don't have to code
right now but I posted it to the list. If you can't find it let me know and
I will find it and repost it.
What it basically did was to create a thread that monitors the sessions that
are added to the monitor. There is a sessionExpired event that you can
listen for. In that event handler, you can do what ever is needed when the
session is no longer in use (eg. Kill threads, close connections to
database, etc.)
Lee
>From: MALINI KRISHNAMURTHY <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Tracking Sessions!
>Date: Fri, 18 Aug 2000 17:52:45 +0530
>
>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
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
===========================================================================
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