Packages

  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Config
      • Adapters
      • Extensions
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Diagnostics
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
      • PhpGenerator
  • NetteModule
  • none

Classes

Interfaces

  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Class UserStorage

Session storage for user object.

Object
Extended by UserStorage implements IUserStorage
Package: Nette\Http
Author: David Grudl
Author: Jan Tichý
Located at Http/UserStorage.php
Methods summary
public
# __construct( Session $sessionHandler )
public UserStorage
# setAuthenticated( boolean $state )

Sets the authenticated status of this user.

Sets the authenticated status of this user.

Parameters

$state
boolean

Returns

UserStorage

Implementation of

IUserStorage::setAuthenticated()
public boolean
# isAuthenticated( )

Is this user authenticated?

Is this user authenticated?

Returns

boolean

Implementation of

IUserStorage::isAuthenticated()
public UserStorage
# setIdentity( IIdentity $identity = NULL )

Sets the user identity.

Sets the user identity.

Returns

UserStorage

Implementation of

IUserStorage::setIdentity()
public IIdentity|null
# getIdentity( )

Returns current user identity, if any.

Returns current user identity, if any.

Returns

IIdentity|null

Implementation of

IUserStorage::getIdentity()
public UserStorage
# setNamespace( string $namespace )

Changes namespace; allows more users to share a session.

Changes namespace; allows more users to share a session.

Parameters

$namespace
string

Returns

UserStorage
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

UserStorage

Implementation of

IUserStorage::setExpiration()
public integer
# getLogoutReason( )

Why was user logged out?

Why was user logged out?

Returns

integer

Implementation of

IUserStorage::getLogoutReason()
protected SessionSection
# getSessionSection( $need )

Returns and initializes $this->sessionSection.

Returns and initializes $this->sessionSection.

Returns

SessionSection
Methods inherited from Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Constants inherited from IUserStorage
BROWSER_CLOSED, CLEAR_IDENTITY, INACTIVITY, MANUAL
Magic properties inherited from Object
$reflection
Nette Framework 2.0.18 (for PHP 5.2, un-prefixed) API documentation generated by ApiGen 2.8.0