This is a complement of session files.
When you start an activity through ajax request and you want to get info of this activity via ajax,
the subsequents requests are blocked waiting for the termination of the first request.
You need to stop using php's session file to serve more ajax request.
Sample of use:
if (isset($_REQUEST['sid'])) session_id($_REQUEST['sid']);
$mysession = new MySession(session_id());
$id = isset($_REQUEST['id'])?$_REQUEST['id']:'';
// this sends to requester the percent of activiy and id,
// use global id vars now this script returns id
"p" => $mysession->readKey($id),
"id" => $id,
This file is that starts the activity and controls the percentage of activity,
$mysession = new MySession( session_id() );
// relase php session for calls from requester stay attended
// .. code that process long time ..
// indicates that finishes the long action
In index.php bootstrap in SlimFramework project add: