Posted by Olaf Schinkel on 12/19/07 16:01
Php Developer schrieb:
> I want to know how to check that user is online or offline by Php.If
> he visit pages then he is online, if he not accessed page he is
> offline. How to handle this is in PHP...I set session of each user...
That is *not* possible.
PHP genarates the code, sends it to the Client and FINISH.
So you have to do something on the website.
Maybe an AJAX request every x Seconds.
But when the client has no JS, or disabled it....
.... it doesn´t work too.
And when JS is working an the person at the computer is sleeping?
Result:
Forget it.
Olaf
Navigation:
[Reply to this message]
|