I am programming a c# application.
I used php for my server side and mysql database for keep accounts data.I can access my mysql database by WebRequest and POST method. I update account status by login to prevent other ones login but i do not know how to know user exit time.
I know i can program c# for exit event but what if user exit unexpectedly.It seems a little risky because if i exit with a special condition user will be logged and no one can login even last user so i think its better to set a expire time in server side.
I update my user status in a time range but how can i program my database to change a record when there is no user update?Can i do it by php?SQL queries?
Thanks.