Asp.Net News
Free Tech Magazines
Asp.Net Web Hosting
Suggest Us
Link to Us
Feeds Subscription
Questions & Answers
Tips & Tricks
 Prevent Multiple Login
Posted by Mskarthik on  9/24/2010 6:16:24 AM Category: Asp.Net 2.0
Add to my favorites
Email to friend
I am karthik...
I got a problem in prevent multiple login single user. i don't know how to do this can u help me...

Post Your Reply Post New Question

 Viewer's Reply
Preventing Multiple Login with Same User Id in Asp.Net
Answered By Moderator1 on 9/25/2010 9:26:56 AM
Hi Karthik,

For Simple solution, I can suggest you some logic. Please try it.

1. When User Log in, in Global.asax, in Session_Start event, add the Session("UserId") to the Application Cache.
2. When the same User Log Out, Remove the Session("UserID") from the Application Cache.
3. During log in, check the User Id in the Application Cache if exists or not. If exists, then there is some user login with the same user id.
Post Your Reply If you still have problem, post it again under this reply for better response.

Sponsored by
Programmers Heaven C# School Book - Free 338 Page eBook
Website Magazine
Introduction to Software Development