Class UserStorage
Session storage for user object.
-
Nette\Object
-
Nette\Http\UserStorage
implements
Nette\Security\IUserStorage
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
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
|
public
Nette\Http\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
Nette\Http\SessionSection
|
#
getSessionSection( $need )
Returns and initializes $this->sessionSection.
Returns and initializes $this->sessionSection.
Returns
|