Identify whether a user is logged in or not
-
My requirement is to find out whether a user is already logged in or not while the same username is logging in for a second time(may be in another pc/browser). If he is already logged in then I need to log out the first user, kill all his sessions and then the second user becomes active. The user name in first and second log in is the same but may not be the same in person(pc). Has anyone worked around such a requirement. I plan to use the FormsAuthentication. But I don't mind changing it if this requirement gets satisfied without it
-
My requirement is to find out whether a user is already logged in or not while the same username is logging in for a second time(may be in another pc/browser). If he is already logged in then I need to log out the first user, kill all his sessions and then the second user becomes active. The user name in first and second log in is the same but may not be the same in person(pc). Has anyone worked around such a requirement. I plan to use the FormsAuthentication. But I don't mind changing it if this requirement gets satisfied without it
tonymathewt wrote:
If he is already logged in then I need to log out the first user, kill all his sessions and then the second user becomes active.
It should not be ! You should give a message to second user the some one is already logged in from your account.
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
-
tonymathewt wrote:
If he is already logged in then I need to log out the first user, kill all his sessions and then the second user becomes active.
It should not be ! You should give a message to second user the some one is already logged in from your account.
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
My client insists on this feature. He wants the first login to be logged out. Is it possible?