Create a Login module which will log users in and also we can able to create a new user, if the same login is attempted from another machine while the session is in progress, there should be a message that "This User has already logged in from <ip address> and this is not allowed".
Asp.net Logon only allow one browser
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Akkiraju IvaturiRank #474 · 5.2K pointsPosted Aug 21, 2012, 5:12 PM EDT
HttpContext.Current.Userproperty is not null then they are logged in. AndIdentity.IsAuthenticatedis true.You need to track IP address of the user when he logins for the first time and store it in some repository so that if you find the user is already logged in then you can read the ip address from the persistent store.