PHP processes called via AJAX canceled to "ESC"?

If I make an AJAX call, will the AJAX call be canceled if the user presses ESC or leaves this page?

If the AJAX call is canceled, will my PHP script work until it finishes what it does (if the time limit is not reached or some other server configuration stops.), Or this process will be killed at that same time, as a child of Apache, does it belong?

If the process is killed with the Apache child, even if it does not end, what would be the best way to keep it alive or what other options should I consider? (ZendX_Console_Process_Unix is ​​not an option).

Thanks!

Late opening:

AJAX call is really canceled if I find "ESC" in Firefox (checked in firebug). The PHP process continues and is not affected by pressing ESC or closing a tab.

+5
source share
2 answers

If the server process begins before the user completes the ajax call (closing the window or switching to another site), then it will be executed until its final result. But the interrupted ajax call (which means that the data transfer was not completed), the server will not process the call.

Note: pressing ESC will not end the ajax call itself unless you use javascript for this behavior in the keyboard.

+3
source

... AJAX- , href, YES, ESC .

<a href="javascript:doFoo();">This can be canceled by pressing ESC</a>

<a href="#" onclick="doFoo();">This can NOT be canceled by pressing ESC</a>
-1

All Articles