Symfony2 API
Class

Symfony\Component\Security\Http\Logout\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)

This method is called by the LogoutListener when a user has requested to be logged out.

Details

at line 32
public __construct(array $cookies)

Constructor.

Parameters

array $cookies An array of cookie names to unset

at line 44
public logout(Request $request, Response $response, TokenInterface $token)

This method is called by the LogoutListener when a user has requested to be logged out.

Usually, you would unset session variables, or remove
cookies, etc.

Parameters

Request $request
Response $response
TokenInterface $token