Can closing the browser terminate the PHP script on the server?

后端 未结 4 1552
無奈伤痛
無奈伤痛 2020-12-05 18:50

Say a user clicked a button, which resulted in a jquery ajax request being sent to my server.

The server begins a complicated process in response to the ajax request

4条回答
  •  伪装坚强ぢ
    2020-12-05 19:17

    See: http://php.net/manual/en/function.ignore-user-abort.php. It depends on the ignore_user_abort setting and a few other conditions.

提交回复
热议问题