Class UserStorage
Session storage for user object.
-
Object
-
UserStorage
implements
IUserStorage
Methods summary
public
|
|
public
UserStorage
|
#
setAuthenticated( boolean $state )
Sets the authenticated status of this user.
Sets the authenticated status of this user.
Parameters
Returns
Implementation of
|
public
boolean
|
#
isAuthenticated( )
Is this user authenticated?
Is this user authenticated?
Returns
boolean
Implementation of
|
public
UserStorage
|
|
public
IIdentity |null
|
#
getIdentity( )
Returns current user identity, if any.
Returns current user identity, if any.
Returns
Implementation of
|
public
UserStorage
|
#
setNamespace( string $namespace )
Changes namespace; allows more users to share a session.
Changes namespace; allows more users to share a session.
Parameters
Returns
|
public
string
|
#
getNamespace( )
Returns current namespace.
Returns current namespace.
Returns
string
|
public
UserStorage
|
#
setExpiration( string|integer|DateTime $time, integer $flags = 0 )
Enables log out after inactivity.
Enables log out after inactivity.
Parameters
- $time
string|integer|DateTime Number of seconds or timestamp
- $flags
integer Log out when the browser is closed | Clear the identity from persistent storage?
Returns
Implementation of
|
public
integer
|
|
protected
SessionSection
|
#
getSessionSection( $need )
Returns and initializes $this->sessionSection.
Returns and initializes $this->sessionSection.
Returns
|