CookieClearingLogoutHandler
class CookieClearingLogoutHandler implements LogoutHandlerInterface
This handler clears the passed cookies when a user logs out.
Methods
__construct(array $cookies) | ||
logout(Request $request, Response $response, TokenInterface $token) Implementation for the LogoutHandlerInterface. Deletes all requested cookies. |
Details
__construct(array $cookies)
Parameters
array | $cookies | An array of cookie names to unset |
logout(Request $request, Response $response, TokenInterface $token)
Implementation for the LogoutHandlerInterface. Deletes all requested cookies.
Parameters
Request | $request | |
Response | $response | |
TokenInterface | $token |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/Security/Http/Logout/CookieClearingLogoutHandler.html