Click here to Skip to main content
14,775,279 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to i prevent logging in same web application (ASP.net4.0,SQL SERVER)in same computer from different userid in new Window/Tab?

Thanks and Regards
Deepak Kumar

1 solution

When a user logs into your website, then store the systems IP address into the database or session and clear it when the user logs out or after session timeout.

When the other user tries to log in then check if any other user is logged in from the same IP address. If yes, then do not allow the user to log in..[^]
Manas Bhardwaj 19-Jun-12 5:43am
Storing the IPAddress won't work. Consider if you try to access the website from same network with multiple PCs.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900