Jquery chat how track user session
<p>We have implemented a Jquery chat in our company for internal communications.it is working fine. We are saving user status on data base, when a user logged in save his status on DB, when he logged out change status as log out.</p>

<p>Issue is that if any user does not click the logged out button and close the window or shut down his PC, he still logged in our chat system.How we can track a each user is logged in, tracking user session is possible?</p>

<p>Help is highly appreciated,
Thanks,
VKS</p>
