Hi everyone
I am wondering how guys out there work on limiting number of users to a web application. Sometimes you may say you want to limit the web app to only handle say 20 users at a time. Our company sells their applications based on a number of licenses, but we are not sure what the behaviour could be in a web app.
I've seen the some suggestions out there saying you can flag a user account as "LoggedIn = True" when a user has logged in. The each new successful login attempt checks the number of "LoggedIn = True" records. If it exceeds the limit, then the user is rejected.
How will unexpected input be handled in this case? What if:
- The user doesn't click logout, and closes the browser
- The browser crashes, and the user doesn't get a change to do logout
- Network connection breaks, electricity on the client goes off etc etc.
All the above will still have the "LoggedIn = True" flag set and contribute to the number of logged in users. This may unintentionally block out genuine authenticated users.
I am looking more for ASP.NET solutions if possible
Any thoughts on this?
Many thanks