Fix saving sessions in PHP 5.4 with user session handlers