Limit the number of simultaneous logins
-
In a smart client application such as TaskVision http://www.windowsforms.net/TaskVision/[^] how does one implement single login? In the current implementation, the application allows any number of logins using the same username and password. Could you please suggest how it can be modified to prevent login if there is a user already logged in with the same username and password? Or better still, to limit the number of simultaneous logins to a predefined number? Keeping a login count in the database could be a solution, but is there a reliable way to know when a user stops using the program? Can the constraint be defined in the stored procedure or in the web service(AuthService)? Thanks.
-
In a smart client application such as TaskVision http://www.windowsforms.net/TaskVision/[^] how does one implement single login? In the current implementation, the application allows any number of logins using the same username and password. Could you please suggest how it can be modified to prevent login if there is a user already logged in with the same username and password? Or better still, to limit the number of simultaneous logins to a predefined number? Keeping a login count in the database could be a solution, but is there a reliable way to know when a user stops using the program? Can the constraint be defined in the stored procedure or in the web service(AuthService)? Thanks.