Namespaces

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

Classes

  • Identity
  • Permission
  • SimpleAuthenticator
  • User

Interfaces

  • IAuthenticator
  • IAuthorizator
  • IIdentity
  • IResource
  • IRole
  • IUserStorage

Exceptions

  • AuthenticationException
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Interface IUserStorage

Interface for persistent storage for user object data.

Direct known implementers

Nette\Http\UserStorage
Namespace: 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( Nette\Security\IIdentity $identity = NULL )

Sets the user identity.

Sets the user identity.

public Nette\Security\IIdentity|null
# getIdentity( )

Returns current user identity, if any.

Returns current user identity, if any.

Returns

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

Log-out reason Nette\Security\IUserStorage::getLogoutReason()

integer INACTIVITY 2
#

Log-out reason Nette\Security\IUserStorage::getLogoutReason()

Log-out reason Nette\Security\IUserStorage::getLogoutReason()

integer BROWSER_CLOSED 4
#

Log-out reason Nette\Security\IUserStorage::getLogoutReason()

Log-out reason Nette\Security\IUserStorage::getLogoutReason()

integer CLEAR_IDENTITY 8
#

Log-out behavior

Log-out behavior

Nette 2.1 API documentation generated by ApiGen 2.8.0