mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-09 20:12:14 +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.
|
// Create or refresh the session if needed.
|
||||||
if ($must_create)
|
if ($must_create)
|
||||||
{
|
{
|
||||||
return self::create();
|
$result = self::create();
|
||||||
}
|
}
|
||||||
elseif ($must_refresh)
|
elseif ($must_refresh)
|
||||||
{
|
{
|
||||||
return self::refresh(true);
|
$result = self::refresh(true);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$_SESSION['is_new_session'] = false;
|
$_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