Thanks for all your suggestions!
So, I think I have following questions before I can solve my problem.
How can I do these in Servlet session?
1. OnInvalidate Event
(so I can set the flag "off" to let another user login, even the current
user simply closed his browser without logout)
or
2. get/peek the session IDs of other sessions
(so if another user(seesion) is active, this user (session) will be
disallowed.)
Thanks!
Xizhen Wang wrote:
>
> Hi all!
>
> Is it possible to disallow multiple users logging in and running Java
> Servlets at the same time? I want to disallow access to my Java Servlets
> if another user has already logged on. Can I use session tracking to
> prevent this from happening - ie force other users to wait and log in
> again once the first user has logged out/closed his browser?
>
> Thanks!
> Xizhen
>
> ___________________________________________________________________________
> 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