Hi all,

In my application i want to restrict the user
from login when there is already a login with the
same id.

How to achive this?

I have the implementation something as follows;

When ever the user logs into the system,the user id
will be put into to the hastable which is the singleton
object.The same will be removed when he logs out.

When other user tries to login with the already logged
in id , then i am throwing the error to the user.

The problem here is ,when the user logs in and
just went off with out doing the logout of the
system,there is no way of removing the entry from
the hastable.

Is it possible to do some activity when the session times
out(using Listener!)? if so please give me a direction on how
to achive it.

with regards,
       rathna.

===========================================================================
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