Asp.Net News
Free Tech Magazines
Asp.Net Web Hosting
Suggest Us
Link to Us
Feeds Subscription
Questions & Answers
Tips & Tricks
 Preventing Multiple Logins in ASP.NET
Posted by Poornima on  7/22/2010 7:59:02 AM Category: Asp.Net 2.0
Add to my favorites
Email to friend
How to prevent multiple login into our website. I am using C# and back end mysql..
please help me.

Post Your Reply Post New Question

 Viewer's Reply
Prevent Multiple Logins
Answered By Moderator1 on 7/23/2010 8:37:22 PM

For web applications, multiple logins cannot be prevented easily. The user can log in through the login form, but its not necessarily to log-off. They just close the window and go out. So its not easy to track the active users and prevent if they are login simultaneously several times.
Preventing Multiple Logins
Answered By Mayuresh Chaudhari on 7/25/2010 6:22:34 AM
You can prevent multiple login by keeping one bit filed in database, just set it to true while user logs in and while checking for login id and password check for that bit field also, but you need to make sure that u can set the same to false if user is logging off or closing the page.
Preventing Multiple Logins in ASP.NET
Answered By hariom on 9/20/2010 8:34:37 AM
u can check the user alredy logged in . if loggenin then no need to login again.

or u can count the no of users loggedin.

Post Your Reply If you still have problem, post it again under this reply for better response.

Sponsored by
The Art & Science of JavaScript - Free 100 Page Preview!
Easing the Migration to Microsoft SQL Server 2005
Many .NET teams are underperforming, is yours?