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;
        }
    }
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;
        }
    }
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 ; } }
Removes is_logged_in cookie if needed.

@param FilterResponseEvent $e
Removes is_logged_in cookie if needed .