Hi everyone,

This is regarding tracking of login and logout actions of users.

I am recording the session creation time and end time using the
HttpSessionBindingListener class. The two methods valueBound() and
valueUnbound() are
invoked. But the getAtrribute() method in the session object returned by
event.getSession()
always give null.

I am storing the userid and a string in the session to indicate if the user
has logged out.
By checking this string's value I can find out if the user has logged out or
the session has timed out.

Has anyone implemented anything similar to this.

Thanks,
Nagaraj.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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

Reply via email to