public function onFilterResponse(FilterResponseEvent $e)
    {
        if ($e->getRequestType() !== HttpKernelInterface::MASTER_REQUEST) {
            return;
        }

        if ($this->needsCookieCleanup) {
            $e->getResponse()->headers->clearCookie('is_logged_in');
            $this->needsCookieCleanup = false;
        }
    }