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;
    }