Last post Feb 11, 2020 05:14 AM by yij sun
Feb 08, 2020 05:08 PM|ravininave|LINK
Hello, I have to block login from another browser at same time if user is login. I thought lots of logic like I will store a tag once user login and update it on logout but what if user didn't press logout button and close the browser directly.
Is there any easiest way? I am using asp.net
Feb 10, 2020 02:48 AM|yij sun|LINK
what if user didn't press logout button and close the browser directly.
Accroding to your description,I suggest you could remove a user from the list when the Session_End event fires in Global.asax to handle a user not logging out properly.
More deatils, you could refer to below article:
Feb 10, 2020 08:44 AM|ravininave|LINK
Well I am not using membership
Feb 11, 2020 05:14 AM|yij sun|LINK
Accroding to your description,as far as I think,I suggest you could get the session id when user successfully logged in, just store the session id in your datastore(associate with
username).Delete the session id when Session_End event fires or user manually logout.
If user try to login with the same username from other machine, verify the session id against database.
More details,you could refer to below article: