PHP - AJAX - why is file access sequential - No Sessions
Posted on 2012-03-28
I have a php file that acts as a gateway to an application server. The php file acts as a connector, it collects values from the request and opens a socket to send a msg to the application server, and then echoes back the returned response - generally some HTML.
The process works correctly, however an individual user can only send requests in serial manner, ie one request to the php file must complete before the next queued request is executed. However multiple users can access the same file, and two simultaneous requests from two different browsers from the same PC will also work.
We are not using any php session management as the application server handles all of that.
I am confused as to why I cannot execute multiple calls to the same file from a single connection/'session'.
As a footnote, the PHP file used with IIS 7.5 does not exhibit this behaviour an individual connection can access the php file in a con-current manner.
Here are some settings from php.ini
session.save_handler = files
session.auto_start = 0
The environment is Ubuntu Server 10.04.4
PHP Version 5.3.2-1ubuntu4.14
Apache/2.2.14 (Ubuntu) Server built: Feb 14 2012 16:42:25