mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Add Session::getLastLoginTime() method
This commit is contained in:
parent
fd8a4ff37d
commit
2ca32e0062
1 changed files with 12 additions and 0 deletions
|
|
@ -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.
|
* Get validity information.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue