Click here to Skip to main content
16,016,744 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to restrict user login twice in an web application

[edit]Spurious code block removed - OriginalGriff[/edit]
Posted
Updated 31-May-23 12:29pm
v2
Comments
bbirajdar 1-Nov-12 5:07am    
What does it mean by twice login ?
OriginalGriff 1-Nov-12 5:14am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
Use the "Improve question" widget to edit your question and provide better information.

you can do one thing....
use session variable..
at login time store the login status in variable and check it on every page load...
 
Share this answer
 
from login twice with his account. The MembershipUser class has a property "IsOnline " which returns wheter a user is logged in or not by checking the login time span. It's not easy to do reliably because HTTP is a disconnected, stateless protocol, Therefore, a user is considered online if the current date and time minus the UserIsOnlineTimeWindow property value is earlier than the LastActivityDate for the user
 
Share this answer
 
v2

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