update available status when systems goes crash
<p>i am doing one small application , wheich have login functionality, </p>

<p>in the user table am maintaining the AVAILABLE status for the logged USER,</p>

<p>example :</p>

<p>i have three user called foo1,foo2,foo3 ,</p>

<p>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,</p>

<p>like the foo2, and foo3 ,</p>

<p>for this available status flasg , amsimply using the update operation ..no other big functionality ,</p>

<p>Now What i want is, </p>

<p>If somthing happened when user logged in , then i want to make the available status as 0,</p>

<p>Somthing means , I WANT TO CHANGE THE AVAILABLE STATUS TO 0 , WHEN  system CRASH OR browser crash </p>

<p>Thanks
Bharanikumar</p>
