Webastor - Programming Tips and Tricks

Programming language => PHP => Topic started by: Dominic on October 24, 2014, 11:39:02 AM

Title: Php who is online?
Post by: Dominic on October 24, 2014, 11:39:02 AM
Hello, I would like to ask you a problem concerning my situation, php who is online This is urgent, please answer the question quickly.
Title: Re: Php who is online
Post by: Patrick on December 09, 2017, 06:54:07 PM
Because of the nature of the web, you can't know when a user disconnects, yanks the cable or shuts down his computer without politely telling you.

You could have a script (AJAX) check every X minutes to see if the browser still responds, and if not, toggle offline