Hai I am developing a community website and peoples can create their profile and can add friends and all. But I need to show a notification if that visitor is online . Or show all visitors in online in a page. I use mysql database.
I make it like this way :- There is a column in database with status. When an user login then it will updated to "online" and when they logout it will goes to "offline". Works fine but If an user close their browser window then it will show that user is online.
Please anyone give an idea.
Thanks
Rajeesh