I need to keep a track of how many users are logged into my software so that i can prevent some settings being changed while other users are logged in.
How can i keep track of user logins on the server? so i can see who is logged in at any one time and how many users are active?
I have thought about doing this by having a SQL table and creating a record when you log in and deleting the record when the app is closed, however if the system crashes out i will get records for users who are not actually in the system and have no way of verifying whether that user is actually logged in or not.
does anyone have any suggestions ?
How can i keep track of user logins on the server? so i can see who is logged in at any one time and how many users are active?
I have thought about doing this by having a SQL table and creating a record when you log in and deleting the record when the app is closed, however if the system crashes out i will get records for users who are not actually in the system and have no way of verifying whether that user is actually logged in or not.
does anyone have any suggestions ?