Scenario:
-
User X1 logged in. He can not be logged again. up to previous log out. In this case it should give message that this user is logged at diff place. pLease logout and try to login again.
-
If user closes browser then it should be logged out automatically.
-
Session should never expire as i logged in.
Thanks In Advance.
I guess you are asking to prevent multiple logins. If so, you seriously need to read a lot. please go through this link:
Preventing Multiple Logins in ASP.NET
and
Prevent Multiple Logins Using the Cache in ASP.NET