Click here to Skip to main content
15,890,609 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to limit users to access the asp.net website. If one users login in the website for all the other users have to get a message that "website is already in use ".
Posted

1 solution

If that is a requirement you shouldn't have implemented it as a website. The web is stateless, it only knows you are "there" when you request a page, after that it has no idea if you are there or not, so websites don't have any concept of "in use" or "active user". Any attempt to implement this will involve the site being wrongly "locked" because the last person to use it has left their browser idle, meaning the sys admin will spend all day unlocking it manually.
 
Share this answer
 

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