mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-27 06:13:32 +09:00
Restore member_srl if it was changed by a third-party program
This commit is contained in:
parent
d495ce5804
commit
1e532c51a4
1 changed files with 10 additions and 0 deletions
|
|
@ -434,7 +434,17 @@ class Session
|
|||
*/
|
||||
public static function close()
|
||||
{
|
||||
// Restore member_srl from XE-compatible variable if it has changed.
|
||||
if ($_SESSION['RHYMIX'] && $_SESSION['RHYMIX']['login'] !== intval($_SESSION['member_srl']))
|
||||
{
|
||||
$_SESSION['RHYMIX']['login'] = intval($_SESSION['member_srl']);
|
||||
$_SESSION['RHYMIX']['last_login'] = time();
|
||||
$_SESSION['is_logged'] = (bool)$member_srl;
|
||||
}
|
||||
|
||||
// Close the session and write it to disk.
|
||||
self::$_started = false;
|
||||
self::$_member_info = false;
|
||||
session_write_close();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue