UserStorage
class UserStorage extends Object implements IUserStorage
Session storage for user object.
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.
Why was user logged out?
Returns and initializes $this->sessionSection.
Details
at line 29
__construct(Session $sessionHandler)
No description
at line 40
UserStorage
setAuthenticated($state)
Sets the authenticated status of this user.
at line 64
bool
isAuthenticated()
Is this user authenticated?
at line 75
UserStorage
setIdentity(IIdentity $identity = NULL)
Sets the user identity.
at line 86
IIdentity|null
getIdentity()
Returns current user identity, if any.
at line 98
UserStorage
setNamespace($namespace)
Changes namespace; allows more users to share a session.
at line 112
string
getNamespace()
Returns current namespace.
at line 124
UserStorage
setExpiration($time, $flags = 0)
Enables log out after inactivity.
at line 149
int|null
getLogoutReason()
Why was user logged out?
at line 160
protected SessionSection
getSessionSection($need)
Returns and initializes $this->sessionSection.