update available status when systems goes crash
Posted
by Bharanikumar
on Stack Overflow
See other posts from Stack Overflow
or by Bharanikumar
Published on 2010-04-05T14:30:33Z
Indexed on
2010/04/05
14:33 UTC
Read the original article
Hit count: 271
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
© Stack Overflow or respective owner