Hi All, Hope You Are Fine :), I Got A situation Here....
When a user log's with his login id on my web application i set a tag in the DB to "1" so that no other user with the same id can login from any other machine with the same login id, when he logs out i reset the tag to "0".
But the problem here occurs is that if a user gets logged in & then his machine suddenly restarts the tag in DB remains "1" & hence from the next time he can't be able to re login.
Is there a way to solve the issue.... or a better way how not to allow two users to login with the same login id at the same time.
Thanks
When a user log's with his login id on my web application i set a tag in the DB to "1" so that no other user with the same id can login from any other machine with the same login id, when he logs out i reset the tag to "0".
But the problem here occurs is that if a user gets logged in & then his machine suddenly restarts the tag in DB remains "1" & hence from the next time he can't be able to re login.
Is there a way to solve the issue.... or a better way how not to allow two users to login with the same login id at the same time.
Thanks
Comment