This content has been marked as final.
Show 2 replies
-
1. Re: How do I restrict the same user log-in on the same time
soshah Sep 11, 2006 10:26 AM (in response to khangfpt)try
request.getPrincipal()
If the returned value is null, user is not logged in
If user is logged in you get the username of the user returned
Thanks
Sohil -
2. Re: How do I restrict the same user log-in on the same time
khangfpt Sep 11, 2006 10:23 PM (in response to khangfpt)Hi Sohil,
Thanks for your replying, but I think method getPrincipal() has scope only in this request, so it can not get user information from other request or request from other PC.