Skip to content

Asp.net Logon only allow one browser

manuel joseph

Asked Aug 21, 2012, 2:05 AM EDT1 answer
Share
LinkedInX

    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".

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Akkiraju Ivaturi
    0
    If the HttpContext.Current.User property is not null then they are logged in. AndIdentity.IsAuthenticated is 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.
    0