Retrieving data from multiple PHP session handlers

Submitted by Darren Oh on

When I was trying to get PHP session upload progress data from a site that uses a custom session handler, I learned that PHP stores the upload progress data using its built-in session handler before it runs any code. This means the upload data is not included when the site starts the session with its custom handler. However, I learned that it is possible to retrieve data from a session, abort it, and start another session with a different session handler. I created an example to enable PHP session upload progress in Drupal.

Tags