Removing code for PHP < 5.1 which is not supported by 2.0

This commit is contained in:
mark_story 2010-07-07 23:34:16 -04:00
parent 1938e57cbc
commit daab018777

View file

@ -619,26 +619,6 @@ class CakeSession {
setcookie(Configure::read('Session.cookie'), '', time() - 42000, self::$path);
}
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();
}
}
}