public function logoutFrontEndUser()
    {
        if (!$this->hasFakeFrontEnd()) {
            throw new Exception('Please create a front end before calling logoutFrontEndUser.', 1334439488);
        }
        if (!$this->isLoggedIn()) {
            return;
        }

        $this->suppressFrontEndCookies();

        $GLOBALS['TSFE']->fe_user->logoff();
        $GLOBALS['TSFE']->loginUser = 0;
    }
public function logoutFrontEndUser()
    {
        if (!$this->hasFakeFrontEnd()) {
            throw new Exception('Please create a front end before calling logoutFrontEndUser.', 1334439488);
        }
        if (!$this->isLoggedIn()) {
            return;
        }

        $this->suppressFrontEndCookies();

        $GLOBALS['TSFE']->fe_user->logoff();
        $GLOBALS['TSFE']->loginUser = 0;
    }
public function logoutFrontEndUser ( ) { if ( ! $ this -> hasFakeFrontEnd ( ) ) { throw new Exception ( 'Please create a front end before calling logoutFrontEndUser.' , 1334439488 ) ; } if ( ! $ this -> isLoggedIn ( ) ) { return ; } $ this -> suppressFrontEndCookies ( ) ; $ GLOBALS [ 'TSFE' ] -> fe_user -> logoff ( ) ; $ GLOBALS [ 'TSFE' ] -> loginUser = 0 ; }
Logs out the current front-end user.

If no front-end user is logged in, this function does nothing.

@throws Exception if no front end has been created

@return void
Logs out the current front - end user .