Hello,
i am having chat page in which there is a [B]logout
also, in that chat page , one of the right-side panel is showing the logged users (whose status of that status_flag are set to ‘1’)
the problem i am geting is when any particular user is not using that logout link to Logout instead he is just closing that window(i mean the browser window), then that status_flag remains set to ‘1’ , and it looks to other users that he is [B]Logged in
So, what i want is how to make such an arrangement such that if that user closes that window then that status_flag is also set back to ‘0’
can u give me some suggession
thanks
-gaurav