mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
Removing code for PHP < 5.1 which is not supported by 2.0
This commit is contained in:
parent
1938e57cbc
commit
daab018777
1 changed files with 0 additions and 20 deletions
|
@ -619,26 +619,6 @@ class CakeSession {
|
||||||
setcookie(Configure::read('Session.cookie'), '', time() - 42000, self::$path);
|
setcookie(Configure::read('Session.cookie'), '', time() - 42000, self::$path);
|
||||||
}
|
}
|
||||||
session_regenerate_id(true);
|
session_regenerate_id(true);
|
||||||
if (PHP_VERSION < 5.1) {
|
|
||||||
$sessionPath = session_save_path();
|
|
||||||
if (empty($sessionPath)) {
|
|
||||||
$sessionPath = '/tmp';
|
|
||||||
}
|
|
||||||
$newSessid = session_id();
|
|
||||||
|
|
||||||
if (function_exists('session_write_close')) {
|
|
||||||
session_write_close();
|
|
||||||
}
|
|
||||||
self::__initSession();
|
|
||||||
session_id($oldSessionId);
|
|
||||||
session_start();
|
|
||||||
session_destroy();
|
|
||||||
$file = $sessionPath . DS . 'sess_' . $oldSessionId;
|
|
||||||
@unlink($file);
|
|
||||||
self::__initSession();
|
|
||||||
session_id($newSessid);
|
|
||||||
session_start();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue