public function onInteractiveLogin(InteractiveLoginEvent $e)
    {
        $request = $e->getRequest();
        if (!$e->getAuthenticationToken()->isAuthenticated() && $request->cookies->has('is_logged_in')) {
            $request->getSession()->invalidate();
            $this->needsCookieCleanup = true;
        }
    }
public function onInteractiveLogin(InteractiveLoginEvent $e)
    {
        $request = $e->getRequest();
        if (!$e->getAuthenticationToken()->isAuthenticated() && $request->cookies->has('is_logged_in')) {
            $request->getSession()->invalidate();
            $this->needsCookieCleanup = true;
        }
    }
public function onInteractiveLogin ( InteractiveLoginEvent $ e ) { $ request = $ e -> getRequest ( ) ; if ( ! $ e -> getAuthenticationToken ( ) -> isAuthenticated ( ) && $ request -> cookies -> has ( 'is_logged_in' ) ) { $ request -> getSession ( ) -> invalidate ( ) ; $ this -> needsCookieCleanup = true ; } }
Removes current userId stored in session if needed.

@param InteractiveLoginEvent $e
Removes current userId stored in session if needed .