Hi Laxminarayan

The standard way of doing this is to authenticate your user against a
database  and deny access if they are logged in already.

For example. when a user logs in, set a field in your database called for
instanced "online"  to 1. When they logout reset it to 0.  When a user
logs in, you check the value of this field against their username in the
database and either deny or allow access.

hth

Chris


On Wed, 30 Aug 2000 06:43:42 +0200, Laxminarayan S (RBIN/DBA-ACF) wrote:

>Hello,
>
>       I have an HTML page invoking a servlet to check the login id. What I
>need to know is, Is there any way that I can lock a particular user id if
>he's logged on more than one session.
>
>       i.e,  I don't want a single user to log on with the same user-id on
>more than one session. I know this should be possible, but can anyone help
>me on how can this be done..
>
>Thanks in advance,
>Laxminarayan
>
>___________________________________________________________________________
>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
>

___________________________________________________________________________
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

Reply via email to