Does php execution stop after a user leaves the page?

后端 未结 5 1529
猫巷女王i
猫巷女王i 2020-11-30 04:23

I want to run a relatively time consuming script based on some form input, but I\'d rather not resort to cron, so I\'m wondering if a php page requested through ajax will co

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-30 05:09

    found the actual solution for my case of it not terminating the connection. The SESSION on my Apache/Php server needed to close before the next one could start.

    Browser waits for ajax call to complete after abort.

提交回复
热议问题