Check if user closed the page in PHP?

前端 未结 9 1985
孤城傲影
孤城傲影 2020-12-22 06:04

I made a chat using PHP and JavaScript chat and there is a disconnect button which removes user from the chat removing him from user list first. But if the user closes brows

9条回答
  •  时光取名叫无心
    2020-12-22 06:44

    The answers to all the questions asked by the OP are covered in the section in the manual about connection handling:

    http://uk3.php.net/manual/en/features.connection-handling.php

    No Ajax.

    No Javascript.

    No keep alives.

    C.

提交回复
热议问题