mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
Regenerate session cookie after removing conflict
This commit is contained in:
parent
d0df41d232
commit
99bab256b3
1 changed files with 2 additions and 1 deletions
|
|
@ -202,9 +202,10 @@ class Session
|
|||
}
|
||||
|
||||
// If this is a new session, remove conflicting cookies.
|
||||
if ($domain === null && !isset($_SESSION['conflict_clean']))
|
||||
if ($cookie_exists && $domain === null && !isset($_SESSION['conflict_clean']))
|
||||
{
|
||||
self::destroyCookiesFromConflictingDomains(array(session_name(), 'rx_autologin', 'rx_sesskey1', 'rx_sesskey2'), true);
|
||||
session_regenerate_id();
|
||||
$_SESSION['conflict_clean'] = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue