mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
Closes #5542 Duplicate cookies
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7735 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
aa248a126f
commit
3c50e54213
1 changed files with 15 additions and 13 deletions
|
@ -608,7 +608,8 @@ class CakeSession extends Object {
|
||||||
if (isset($_COOKIE[session_name()])) {
|
if (isset($_COOKIE[session_name()])) {
|
||||||
setcookie(Configure::read('Session.cookie'), '', time() - 42000, $this->path);
|
setcookie(Configure::read('Session.cookie'), '', time() - 42000, $this->path);
|
||||||
}
|
}
|
||||||
session_regenerate_id();
|
session_regenerate_id(true);
|
||||||
|
if (PHP_VERSION < 5.1) {
|
||||||
$newSessid = session_id();
|
$newSessid = session_id();
|
||||||
|
|
||||||
if (function_exists('session_write_close')) {
|
if (function_exists('session_write_close')) {
|
||||||
|
@ -625,6 +626,7 @@ class CakeSession extends Object {
|
||||||
session_start();
|
session_start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* Restarts this session.
|
* Restarts this session.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue