How does PHP handle client connection during sleep?
Or in another way: what happens if the client closes the connection to the server during page processing?
Does it just kill the process or continue to process the page to the end?
Since I'm not sure about the answers to the above, how would I implement the following pseudo-code in PHP.
Record user entered while (user is still connected) { fetch changes in state since last awake send changes to user sleep(5); } Record user exit
Any thoughts would be appreciated.
Thanks.
source share