mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Fix incorrect rx_login_status cookie immediately after autologin
This commit is contained in:
parent
80e50d41f5
commit
9d5dff5371
1 changed files with 7 additions and 6 deletions
|
|
@ -155,23 +155,24 @@ class Session
|
|||
}
|
||||
}
|
||||
|
||||
// Check the login status cookie.
|
||||
self::checkLoginStatusCookie();
|
||||
|
||||
// Create or refresh the session if needed.
|
||||
if ($must_create)
|
||||
{
|
||||
return self::create();
|
||||
$result = self::create();
|
||||
}
|
||||
elseif ($must_refresh)
|
||||
{
|
||||
return self::refresh(true);
|
||||
$result = self::refresh(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['is_new_session'] = false;
|
||||
return true;
|
||||
$result = true;
|
||||
}
|
||||
|
||||
// Check the login status cookie.
|
||||
self::checkLoginStatusCookie();
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue