Dear all,
What is the commonly used technique to prevent the same user from logging
onto a web application using
servlets more than one time concurrently.
We have an application, in which the links in the home page lead to
different pages containing an applet each.
We want that a user should not be able to log in more than once
concurrently
There was a suggestion of using the setAttribute() method of the
ServletContext with the name of the user and when the user logs off remove
this attribute. If a user tries to log on, system first checks in the
context as to whether he is already logged on.
This will work fine for me in all but one situation for me. If the user
closes the browser rather
than logging out, the value will be still there in the Servlet Context.
There was a suggestion about using the destroy method of the applet to
remove this attribute. But i cannot do this also , since destroy will be
invoked when i click different links as one applet is giving way to
another. What do i do in this case?
There was also a suggestion to implement session tmeout. Does this mean
that i have set the setMaxInactiveInterval method of the session object to
a particular time interval. Even if i set that , how does it remove the
above said attribute from the context after the expiry of the session.
Thanks in advance
Asish
___________________________________________________________________________
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