Continue script execution on client disconnection
To continue the script execution on client disconnection, you can use a function provided by PHP called ‘ignore_user_abort’. This function sets whether on client disconnect, should script execution be continued or aborted. Calling the function with the parameter set to ‘TRUE’ should ignore user disconnection and continue with script execution.
<?php
ignore_user_abort(TRUE);
?>
When finished you may again set the value to FALSE to allow the script to halt on client disconnect.
<?php
ignore_user_abort(FALSE);
?>












