PHP Class CakeDC\Users\Controller\Component\RememberMeComponent

Saves a cookie to keep the user logged into the application even when the session expires
Inheritance: extends Cake\Controller\Component
Afficher le fichier Open project: cakedc/users

Méthodes publiques

Свойство Type Description
$components array Components

Protected Properties

Свойство Type Description
$_cookieName string Name of the cookie

Méthodes publiques

Méthode Description
beforeFilter ( Cake\Event\Event $event ) : mixed Reads the stored cookie and auto login the user if present
destroy ( Cake\Event\Event $event ) : void Destroys the remember me cookie
initialize ( array $config ) : void Initialize config data and properties.
setCookieOptions ( ) : void Sets cookie configuration options
setLoginCookie ( Cake\Event\Event $event ) : void Sets the login cookie that handles the remember me feature

Méthodes protégées

Méthode Description
_attachEvents ( ) : void Attach the afterLogin and beforeLogount events
_validateConfig ( ) : void Validate component config

Method Details

_attachEvents() protected méthode

Attach the afterLogin and beforeLogount events
protected _attachEvents ( ) : void
Résultat void

_validateConfig() protected méthode

Validate component config
protected _validateConfig ( ) : void
Résultat void

beforeFilter() public méthode

Reads the stored cookie and auto login the user if present
public beforeFilter ( Cake\Event\Event $event ) : mixed
$event Cake\Event\Event event
Résultat mixed

destroy() public méthode

Destroys the remember me cookie
public destroy ( Cake\Event\Event $event ) : void
$event Cake\Event\Event event
Résultat void

initialize() public méthode

Initialize config data and properties.
public initialize ( array $config ) : void
$config array The config data.
Résultat void

setCookieOptions() public méthode

Sets cookie configuration options
public setCookieOptions ( ) : void
Résultat void

setLoginCookie() public méthode

Sets the login cookie that handles the remember me feature
public setLoginCookie ( Cake\Event\Event $event ) : void
$event Cake\Event\Event event
Résultat void

Property Details

$_cookieName protected_oe property

Name of the cookie
protected string $_cookieName
Résultat string

$components public_oe property

Components
public array $components
Résultat array