I have developed an ASP.NET website using C#. There is also a simple authentication module. Users can simply submit a form and be a member.
The problem area:
Say this scenario; If I log in as the admin with of course some unique user name and password, there should not be any other user able to log in with the same authentication information. I explicitly mean only one log in per user account.
Of course, I have surfed the web and found something good Right Here. (I tried the answer with 8 score of course). Actually, it works fine. But, the Session.Abandon(); does not clear the Session["UsersLoggedIn"].
The Problem: When the user logs out the session is clear and it is fine. But when it again logs in less than session expiration duration, he fails! The reason is that, the Application["UsersLoggedIn"] still has some value and therefore the if statement in the Login method assumes that the user is already logged in. How can I come over this matter?
Any idea please?
Thank you