|
Posted by Peter Fox on 02/27/06 11:07
Following on from Mitul's message. . .
>Hi to all,
>
>I am working on a site in which I need to check whether user is online
>or not. If user successfully logged out then I can change status from
>online to offline but if user do not logged out and close the browser
>or session timeout then in both of the case I do not handle how to
>change user's status from online to offline.
>
>Please help me to overcome the problem. Looking forward to reply from
>all of you.
>
>With Regards & thanks,
>Mitul Patel
>
You can't, using HTTP, 'ping' the client.
What does that leave?
The client might send a 'heartbeat' using Javascript say once every
couple of minutes.
How could you implement this? Possibly by requesting a url for a frame.
Whatever scheme you use don't expect it to work 100% of the time.
My guess is that you need _instead_ to look /carefully/ at user
authentication.
--
PETER FOX Not the same since the bookshop idea was shelved
peterfox@eminent.demon.co.uk.not.this.bit.no.html
2 Tees Close, Witham, Essex.
Gravity beer in Essex <http://www.eminent.demon.co.uk>
[Back to original message]
|