Add Session::getLastLoginTime() method

This commit is contained in:
Kijin Sung 2022-10-20 16:14:06 +09:00
parent fd8a4ff37d
commit 2ca32e0062

View file

@ -1014,6 +1014,18 @@ class Session
}
}
/**
* Get the last login time.
*
* If the user is not logged in, this method returns 0.
*
* @return int
*/
public static function getLastLoginTime()
{
return $_SESSION['RHYMIX']['last_login'] ?? 0;
}
/**
* Get validity information.
*