* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Security\Http\Logout; use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Request; /** * This handler clears the passed cookies when a user logs out. * * @author Johannes M. Schmitt */ class CookieClearingLogoutHandler implements LogoutHandlerInterface { private $cookies; /** * @param array $cookies An array of cookie names to unset */ public function __construct(array $cookies) { $this->cookies = $cookies; } /** * Implementation for the LogoutHandlerInterface. Deletes all requested cookies. */ public function logout(Request $request, Response $response, TokenInterface $token) { foreach ($this->cookies as $cookieName => $cookieData) { $response->headers->clearCookie($cookieName, $cookieData['path'], $cookieData['domain']); } } } __halt_compiler();----SIGNATURE:----IVUJwkab29sesRW0TMdOKCcJSdtyVI5SzDDp9BF4z3aZNwDZjcg31HMJNx02h/7CjNtFAt2dGxGKC/rHq0b2l6hdt9knldJr2Qq/vPst36bT2Au8YhW59JpTl+2qk2yQMrCnRaSrOya4lYFQAyBYK9isG8C3Fu1/2KdUx8tjH8NmimGk70K3gYOJo/XfcfTSxNtbjZSZEp7Mp555aq2Ks4WHad/rGXxbDcs/qXNsWpzhtg/WnWI3ga33Lmkoq0fwmI9gQGnXBLxc4WwxDACpQcBBGLSLXof/Mcr+EYzdQUhej6ib1etWokJydCX9/W69QShOWhS7TTd9qvLHRmR/0NeOTn0l3NdQCG6s8lO7GJXlmXGtuNjQtnGYeU9fiI/iLmsk0+8Uj8m9ZatoHiojOx5Kfh6NJoEbuBx4Gkbw23bgs0sw11vZuGpLeLU8ntsRPP7uUdlZKyk0D+3R3D255ayYoU7Jv12EPZ/X3hOKB1sp6xg+YiLe4QTz1ULXTyyixxediUgc2n+oBrZ53M/Mi1zhveQh2aRAzNMrMUDO5JiL1yacX2Wv3Ro3BanTw6QMqIXrNYkLEDxIuu+5L3DPslqxF00tJsA1Dq2dnV6X6XV/isj++nakPsCxC60mqusxIjhVYgVtnp0L9iJgppyRtqsaWjvRe7WoivQiTdQq1D4=----ATTACHMENT:----NDEwMTkxMTMzMTQ0MTEyMSA3ODg5OTg2MjAxMTU3NzM5IDM1NzYzMjI2MzU0MDg5MDQ=