My flash web application calls php script to upload a document. At the same time, it calls another php script to save some data. The two calls should be independent of each other. However, the call to save data is blocked and is not processed until the first call (to upload) is completed. Is this the nature of PHP scripts?
When using $_SESSION
variables, the session file is locked until the request ends. This means that a new request cannot start being processed until the first one finishes.
To unlock the file, use session_write_close
. This will allow the second request to proceed.