I am working on an application that allows users to have a profil ...
For security reasons, i want to deny connexion to already connect user, which means if a user is connected from a machine, he can't connect from another one, some people may say cookies and sessions but i'm using an "Application" not a website.
for now, i added a column is the users table in my database called "IsConnected" so before logging in, the Application check if this column is set at 1 or 0 and based on this value allow or deny connexion to this user, it is working, but not perfectly. if the user close the application without disconnecting the column is not set to 0 so the user is always connected.
my hope is that you guys tell me another way for doing thing, because am new to this domain and i need your help.