Ignore Abort user, ignored by PHP?

Hell,

I used the following ignore_user_abort .

ignore_user_abort(true); set_time_limit(0); session_start();

However, when I navigate from the page where I am running the AJAX request, does the script stop?

What am I doing wrong?

Update

The PHP manual says:

PHP will not detect that the user has disconnected until an attempt is made to send information to the client. Just using an echo does not guarantee that information is sent, see flush ().

It seems you can use the echo and it will simply determine that the user has logged off and will continue?

+3
source share
3 answers

PHP will not detect ... until an attempt is made to send information to the client

: php : stop. ob_start() , gzip : ob_start('ob_gzhandler').

+1

, -, script? , echo script, .

0

, ?

, , - ?

script script?

ajax ? , , .

wirehark -, , , , , .

DC

0

Source: https://habr.com/ru/post/1728065/


All Articles