when I try to fire several requests to my cakephp site at the same time I get this error:
session_regenerate_id(): Session object destruction failed [CORE\Cake\Model\Datasource\CakeSession.php, line 720]
I have no idea where that comes from. These warnings are crashing my ajax-calls. Same problem in cakephp versions 2.5.1 and 2.8.5!
Here is the code for the lines:
public static function renew() {
if (session_id()) {
if (session_id() || isset($_COOKIE[session_name()])) {
setcookie(Configure::read('Session.cookie'), '', time() - 42000, self::$path);
}
session_regenerate_id(true);
}
}
line 720 is the one with the session_regenerate_id
-command.
I found this link but I don't get a "headers already sent"-error.
System: Windows Server 2012 R2 IIS 8 PHP v 5.6
Any ideas? I'm not very familiar with sessions to begin with.