UserStorage deprecated
class UserStorage implements IUserStorage
deprecated
Methods
Sets the authenticated status of this user.
Is this user authenticated?
Sets the user identity.
Returns current user identity, if any.
Changes namespace; allows more users to share a session.
Returns current namespace.
Enables log out after inactivity. Accepts flag IUserStorage::CLEAR_IDENTITY.
Why was user logged out?
Returns and initializes $this->sessionSection.
Details
at line 28
__construct(Session $sessionHandler)
No description
at line 37
UserStorage
setAuthenticated(bool $state)
Sets the authenticated status of this user.
at line 61
bool
isAuthenticated()
Is this user authenticated?
at line 71
UserStorage
setIdentity(IIdentity|null $identity)
Sets the user identity.
at line 81
IIdentity|null
getIdentity()
Returns current user identity, if any.
at line 91
UserStorage
setNamespace(string $namespace)
Changes namespace; allows more users to share a session.
at line 105
string
getNamespace()
Returns current namespace.
at line 114
UserStorage
setExpiration(string|null $time, int $flags = 0)
Enables log out after inactivity. Accepts flag IUserStorage::CLEAR_IDENTITY.
at line 135
int|null
getLogoutReason()
Why was user logged out?
at line 145
protected SessionSection|null
getSessionSection(bool $need)
Returns and initializes $this->sessionSection.