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

Exceptions

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

Interface IUserStorage

Interface for persistent storage for user object data.

Direct known implementers

UserStorage
Package: Nette\Security
Author: David Grudl, Jan Tichý
Located at Security/IUserStorage.php
Methods summary
public
# setAuthenticated( boolean $state )

Sets the authenticated status of this user.

Sets the authenticated status of this user.

Parameters

$state
boolean
public boolean
# isAuthenticated( )

Is this user authenticated?

Is this user authenticated?

Returns

boolean
public
# setIdentity( IIdentity $identity = NULL )

Sets the user identity.

Sets the user identity.

public IIdentity|null
# getIdentity( )

Returns current user identity, if any.

Returns current user identity, if any.

Returns

IIdentity|null
public
# setExpiration( string|integer|DateTime $time, integer $flags = 0 )

Enables log out from the persistent storage after inactivity.

Enables log out from the persistent storage 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?
public integer
# getLogoutReason( )

Why was user logged out?

Why was user logged out?

Returns

integer
Constants summary
integer MANUAL 1
#

Log-out reason IUserStorage::getLogoutReason()

Log-out reason IUserStorage::getLogoutReason()

integer INACTIVITY 2
#

Log-out reason IUserStorage::getLogoutReason()

Log-out reason IUserStorage::getLogoutReason()

integer BROWSER_CLOSED 4
#

Log-out reason IUserStorage::getLogoutReason()

Log-out reason IUserStorage::getLogoutReason()

integer CLEAR_IDENTITY 8
#

Log-out behavior

Log-out behavior

Nette Framework 2.0.18 (for PHP 5.2, un-prefixed) API documentation generated by ApiGen 2.8.0