ignore_user_abort

int ignore_user_abort(bool user_abort_setting) 

Enables/disables remote user aborts.

Returns:

Previous value of the user-abort setting

Description:

ignore_user_abort() allows developers to control whether a remote client can abort the running of a script. If the user_abort_setting argument is set to FALSE, client aborts (and some network errors) will cause the script to stop running. If user_abort_setting is set to TRUE, the script continues running until an error occurs, the script finishes execution, or the script times out.

Note:

Regardless of the user_abort_setting , no output will be sent to the client’s browser after an attempt to abort the script. See connection_aborted() for information on how to deal with an aborted ...

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.