1
0
mirror of https://github.com/delight-im/PHP-Auth.git synced 2025-08-03 14:47:30 +02:00

Improve documentation

This commit is contained in:
Marco
2018-03-24 17:44:42 +01:00
parent 095b8ccc70
commit 7be05ddde2

View File

@@ -146,6 +146,7 @@ final class Auth extends UserManager {
private function resyncSessionIfNecessary() {
// if the user is signed in
if ($this->isLoggedIn()) {
// the session field may not have been initialized for sessions that had already existed before the introduction of this feature
if (!isset($_SESSION[self::SESSION_FIELD_LAST_RESYNC])) {
$_SESSION[self::SESSION_FIELD_LAST_RESYNC] = 0;
}