update available status when systems goes crash
- by Bharanikumar
Hi ,
i am doing one small application , wheich have login functionality,
in the user table am maintaining the AVAILABLE status for the logged USER,
example :
i have three user called foo1,foo2,foo3 ,
When foo1 logged then his AVAILABLE STATUS WILL UPDATE AS 1 IN THE USERTABLE, if he logged out then his AVAILABLE STATUS goes to 0,
like the foo2, and foo3 ,
for this available status flasg , amsimply using the update operation ..no other big functionality ,
Now What i want is,
If somthing happened when user logged in , then i want to make the available status as 0,
Somthing means , I WANT TO CHANGE THE AVAILABLE STATUS TO 0 , WHEN system CRASH OR browser crash
Thanks
Bharanikumar