CookieClearingLogoutHandler

class CookieClearingLogoutHandler implements LogoutHandlerInterface

This handler clears the passed cookies when a user logs out.

Methods

__construct(array $cookies)

Constructor.

logout(Request $request, Response $response, TokenInterface $token)

Implementation for the LogoutHandlerInterface. Deletes all requested cookies.

Details

__construct(array $cookies)

Constructor.

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
doc_Symfony
2016-10-28 06:12:20
Comments
Leave a Comment

Please login to continue.