Namespaces

  • 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

  • Context
  • FileUpload
  • Request
  • RequestFactory
  • Response
  • Session
  • SessionSection
  • Url
  • UrlScript
  • UserStorage

Interfaces

  • IRequest
  • IResponse
  • ISessionStorage
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Class UserStorage

Session storage for user object.

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

Sets the authenticated status of this user.

Sets the authenticated status of this user.

Parameters

$state
boolean

Returns

Nette\Http\UserStorage

Implementation of

Nette\Security\IUserStorage::setAuthenticated()
public boolean
# isAuthenticated( )

Is this user authenticated?

Is this user authenticated?

Returns

boolean

Implementation of

Nette\Security\IUserStorage::isAuthenticated()
public Nette\Http\UserStorage
# setIdentity( Nette\Security\IIdentity $identity = NULL )

Sets the user identity.

Sets the user identity.

Returns

Nette\Http\UserStorage

Implementation of

Nette\Security\IUserStorage::setIdentity()
public Nette\Security\IIdentity|null
# getIdentity( )

Returns current user identity, if any.

Returns current user identity, if any.

Returns

Nette\Security\IIdentity|null

Implementation of

Nette\Security\IUserStorage::getIdentity()
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

$namespace
string

Returns

Nette\Http\UserStorage
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

Nette\Http\UserStorage

Implementation of

Nette\Security\IUserStorage::setExpiration()
public integer
# getLogoutReason( )

Why was user logged out?

Why was user logged out?

Returns

integer

Implementation of

Nette\Security\IUserStorage::getLogoutReason()
protected Nette\Http\SessionSection
# getSessionSection( $need )

Returns and initializes $this->sessionSection.

Returns and initializes $this->sessionSection.

Returns

Nette\Http\SessionSection
Methods inherited from Nette\Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Constants inherited from Nette\Security\IUserStorage
BROWSER_CLOSED, CLEAR_IDENTITY, INACTIVITY, MANUAL
Magic properties inherited from Nette\Object
$reflection
Nette 2.0 API documentation generated by ApiGen 2.8.0