singleton - Allow to login only one user at time -


There may be multiple operators in a client in our system, however "desire" from the client is an account of a company, though This can be a mutual operator assigned to the company. The client wants to prepare us a solution that only one operator from the company can log in to the system at the same time. How can I get it?

"I am using WPF application and written in the server WCF, though it But in what situation when a user has opened an application and is inactive for 30 minutes? "

This system is going to be a single user, so I Recommend to you when a user logs in, start a counter thread. When the counter reaches 30 minutes, write to DB the value that the user has expired and other users are free to login. Obviously, you should do the same thing when you explicitly log out the user.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -