How to handle user online status when he/she close the browser?
<p>I am having table to track user online status by setting 'is_online' field to 1. Now User get logged in the site and shut down his/her system or power down at that time he/she logged in.
Here in database 'is_login' has the value '1' which means he is still using the site.</p>

<p>So I have to do some logic to change that value to '0'.</p>

<p>How can i handle this situation using PHP ?</p>
