Possible Duplicate:
How to make online/offline
I want to make a script display online - offline status to other users using php .
For example: Let there be two user in our database . First user is online and second user is offline. When second user will be online, how can first user get an immediate notification that the second user is online, without refreshing page or refreshing div tag.