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
| NONE | |
| MIGRATE | |
| INVALIDATE |
| __construct(string $strategy) | ||
| onAuthentication(Request $request, TokenInterface $token) This performs any necessary changes to the session. |
| string | $strategy |
This performs any necessary changes to the session.
This method should be called before the TokenStorage is populated with a Token. It should be used by authentication listeners when a session is used.
| Request | $request | |
| TokenInterface | $token |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Security/Http/Session/SessionAuthenticationStrategy.html