Hello, I would like to ask you a problem concerning my situation, php who is online This is urgent, please answer the question quickly.
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