AspdotnetCodes.com
Search
Articles
Books
Resources
Asp.Net News
Downloads
Free Tech Magazines
Asp.Net Web Hosting
Archives
Softwares
Newsletter
Suggest Us
Link to Us
Feeds Subscription
Articles
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
Hi,
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
Backup and Recovery Best Practices for Microsoft SQL Server 2005
Website Magazine
Oracle Magazine