You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Long running PHP Script and AJAX

edited Jan 9, 2019 5:54AM in Customer Portal


PHP scripts takes about 3 minutes to finish. Ajax request gets stuck at Pending.


Hi all,

I have a PHP controller which updates multiple contact records and takes about 2-3 minutes for each request and is supposed to output a JSON response to AJAX caller. 

While the PHP script is running fine as contacts are being updated as expected, the AJAX request appears to be timed out. In Chrome the request's status goes to 'Cancelled' after 20 seconds and in IE and MS Edge, the request gets stuck at 'Pending' status.

Is there a way I could extend the AJAX timeout interval? I am using YUI to make Ajax request using widget's standard Ajax feature.

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!