SessionAuthenticationStrategy

SessionAuthenticationStrategy

class SessionAuthenticationStrategy implements SessionAuthenticationStrategyInterface

The default session strategy implementation.

Supports the following strategies: NONE: the session is not changed MIGRATE: the session id is updated, attributes are kept INVALIDATE: the session id is updated, attributes are lost

Constants

NONE
MIGRATE
INVALIDATE

Methods

__construct($strategy)
onAuthentication(Request $request, TokenInterface $token)

This performs any necessary changes to the session.

Details

__construct($strategy)

Parameters

$strategy

onAuthentication(Request $request, TokenInterface $token)

This performs any necessary changes to the session.

This method is called before the TokenStorage is populated with a Token, and only by classes inheriting from AbstractAuthenticationListener.

Parameters

Request $request
TokenInterface $token
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部