Checking who's online
Posted: Fri Feb 19, 2010 11:07 am
Hi guys
I'm making a chat application with flash and php, and I would like to know how you see if someone's online.
I have a login which registered users can log into my application, and this is done with a MySQL database. I know website update a 'logged_in' column to true or something similar when a user is logged in, but using that method, how do you check if the person is offline? I suppose you can update the database when a 'logout' button is clicked, but some users may not do that, and close the window instead.
Any help would be appreciated.
Thanks
I'm making a chat application with flash and php, and I would like to know how you see if someone's online.
I have a login which registered users can log into my application, and this is done with a MySQL database. I know website update a 'logged_in' column to true or something similar when a user is logged in, but using that method, how do you check if the person is offline? I suppose you can update the database when a 'logout' button is clicked, but some users may not do that, and close the window instead.
Any help would be appreciated.
Thanks