PHP Класс Piwik\Plugins\Login\SessionInitializer
If a user is authenticated, a browser cookie is created so the user will be remembered
until the cookie is destroyed.
Plugins can override SessionInitializer behavior by extending this class and
overriding methods. In order for these changes to have effect, however, an instance of
the derived class must be used by the Login/Controller.
Показать файл
Открыть проект
Примеры использования класса
Открытые методы
Защищенные методы
Описание методов
__construct()
публичный Метод
doAuthenticateSession()
защищенный Метод
Derived classes can override this method to customize authentication logic or impose
extra requirements on the user trying to login.
protected doAuthenticateSession ( Piwik\Auth $auth ) : Piwik\AuthResult |
$auth |
Piwik\Auth |
The Auth implementation to use when authenticating. |
Результат |
Piwik\AuthResult |
|
getAuthCookie()
защищенный Метод
Returns a Cookie instance that manages the browser cookie used to store session
information.
protected getAuthCookie ( boolean $rememberMe ) : Piwik\Cookie |
$rememberMe |
boolean |
Whether the authenticated session should be remembered after
the browser is closed or not. |
Результат |
Piwik\Cookie |
|
getHashTokenAuth()
публичный статический Метод
Accessor to compute the hashed authentication token.
initSession()
публичный Метод
Authenticates the user and, if successful, initializes an authenticated session.
public initSession ( Piwik\Auth $auth, boolean $rememberMe ) |
$auth |
Piwik\Auth |
The Auth implementation to use. |
$rememberMe |
boolean |
Whether the authenticated session should be remembered after
the browser is closed or not. |
processFailedSession()
защищенный Метод
Executed when the session could not authenticate.
processSuccessfulSession()
защищенный Метод
Executed when the session was successfully authenticated.
protected processSuccessfulSession ( Piwik\AuthResult $authResult, boolean $rememberMe ) |
$authResult |
Piwik\AuthResult |
The successful authentication result. |
$rememberMe |
boolean |
Whether the authenticated session should be remembered after
the browser is closed or not. |
regenerateSessionId()
защищенный Метод