PHP, Ajax, and the lifespan of the request

Posted by Dave on Stack Overflow See other posts from Stack Overflow or by Dave
Published on 2010-06-08T23:22:03Z Indexed on 2010/06/08 23:42 UTC
Read the original article Hit count: 266

Filed under:
|
|
|

I was wondering about the lifespan of a PHP script when called via Ajax. Assume that there is a long-running (i.e. 30 seconds) PHP script on a server and that page is loaded via Ajax. Before the script completes, the user closes the browser. Does the script continue running to completion, is it terminated, or is this a function of the server itself (I'm running Apache fwiw). Thanks for any help.

© Stack Overflow or respective owner

Related posts about php

Related posts about jQuery