Problem: Stopping multiple logins in windows application - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Problem: Stopping multiple logins in windows application

I m making a windows based client server application. I want to stop same user from signing in the application simultaneously from different machines on the network. For implementing this I have kept a flag in DB which is set when user is logged in and cleared on log off. If this flag is set then it stops user from entering into the system if he is already signed in.

Now the issue is that if the application crashes for some reason (e.g power breakdown etc) then the flag remains set as it is not the normal shutdown of the application and the user is unabled to logged in.
Is there any other way I can address this issue.

Please reply as soon as possible
Sign In or Register to comment.