Namespaces

  • Latte
    • Loaders
    • Macros
    • Runtime
  • Nette
    • Application
      • Responses
      • Routers
      • UI
    • Bridges
      • ApplicationDI
      • ApplicationLatte
      • ApplicationTracy
      • CacheDI
      • CacheLatte
      • DatabaseDI
      • DatabaseTracy
      • DITracy
      • FormsDI
      • FormsLatte
      • Framework
      • HttpDI
      • HttpTracy
      • MailDI
      • ReflectionDI
      • SecurityDI
      • SecurityTracy
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Conventions
      • Drivers
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
      • Traits
    • Reflection
    • Security
    • Tokenizer
    • Utils
  • Tracy
    • Bridges
      • Nette
  • none

Classes

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

Interfaces

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

Class UserStorage

Session storage for user object.

Nette\Http\UserStorage implements Nette\Security\IUserStorage uses Nette\SmartObject
Namespace: Nette\Http
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

Returns

Nette\Http\UserStorage
static

Implementation of

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

Is this user authenticated?

Is this user authenticated?

Returns

boolean
bool

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
static

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
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

Returns

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

Nette\Http\UserStorage
static

Implementation of

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

Why was user logged out?

Why was user logged out?

Returns

integer|null
int|null

Implementation of

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

Returns and initializes $this->sessionSection.

Returns and initializes $this->sessionSection.

Returns

Nette\Http\SessionSection|null
SessionSection|null
Methods used from Nette\SmartObject
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Constants inherited from Nette\Security\IUserStorage
BROWSER_CLOSED, CLEAR_IDENTITY, INACTIVITY, MANUAL
Nette 2.4-20180918 API API documentation generated by ApiGen 2.8.0