Class UserStorage
Session storage for user object.
-
Nette\Http\UserStorage
implements
Nette\Security\IUserStorage
uses
Nette\SmartObject
Methods summary
public
|
|
public
Nette\Http\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 bool
Implementation of
|
public
Nette\Http\UserStorage
|
|
public
Nette\Security\IIdentity |null
|
#
getIdentity( )
Returns current user identity, if any.
Returns current user identity, if any.
Returns
Implementation of
|
public
Nette\Http\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 string
|
public
Nette\Http\UserStorage
|
#
setExpiration( string|integer|DateTimeInterface $time, integer $flags = 0 )
Enables log out after inactivity.
Enables log out after inactivity.
Parameters
- $time
- of seconds or timestamp
- $flags
- IUserStorage::CLEAR_IDENTITY
Returns
Implementation of
|
public
integer|null
|
#
getLogoutReason( )
Why was user logged out?
Returns
integer|null int|null
Implementation of
|
protected
Nette\Http\SessionSection |null
|
#
getSessionSection( $need )
Returns and initializes $this->sessionSection.
Returns and initializes $this->sessionSection.
Returns
|