Logs-out using the toolbar log-out link.
483580
public function logOut()
    {
        /*
         * Using NodeElement::mouseOver() won't work because WordPress is using hoverIndent.
         * Instead we just manually add the hover class.
         *
         * See https://github.com/paulgibbs/behat-wordpress-extension/issues/65
         */
        try {
            $element_exists = $this->getSession()->evaluateScript(
                'return document.getElementById("wp-admin-bar-my-account");'
            );

            if ($element_exists !== null) {
                $this->getSession()->executeScript(
                    'document.getElementById("wp-admin-bar-my-account").classList.add("hover");'
                );

                $this->find('css', '#wp-admin-bar-logout a')->click();
            }
        } catch (UnsupportedDriverActionException $e) {
            // This will fail for GoutteDriver but neither is it necessary.
            $this->find('css', '#wp-admin-bar-logout a')->click();
        }
    }
713323
def logout(request):
    
    auth_logout(request)
    info(request, _("Successfully logged out"))
    return redirect(next_url(request) or get_script_prefix())
1127548
public void logout() {
        saveResumeToken(null);
        mDDPState = DDPSTATE.NotLoggedIn;
        mUserId = null;
        broadcastConnectionState(mDDPState);
    }
443564
public void simpleLogout(HttpServletRequest req, HttpServletResponse res) {
        createSubjectAndPushItOnThreadAsNeeded(req, res);

        AuthenticationResult authResult = new AuthenticationResult(AuthResult.SUCCESS, subjectManager.getCallerSubject());
        authResult.setAuditCredType(req.getAuthType());
        authResult.setAuditOutcome(AuditEvent.OUTCOME_SUCCESS);
        Audit.audit(Audit.EventID.SECURITY_API_AUTHN_TERMINATE_01, req, authResult, Integer.valueOf(res.getStatus()));

	removeEntryFromAuthCacheForUser(req, res);
        invalidateSession(req);
        ssoCookieHelper.removeSSOCookieFromResponse(res);
        ssoCookieHelper.createLogoutCookies(req, res);
        subjectManager.clearSubjects();

    }
131316
def logout(self, callback=None):
        """"""
        self.ddp_client.call('logout', [], callback=callback)
        self.emit('logged_out')
228125
def logout(self):
        """"""
        if self._logged_in is True:
            self.si.flush_cache()
            self.sc.sessionManager.Logout()
            self._logged_in = False
270337
def logout(self):
        
        if not self.session:
            self.manager._deregister(self)
            return
        try:
            r = self.session.put(self.entry_points.get('logout'))
            if r.status_code == 204:
                logger.info('Logged out admin: %s of domain: %s successfully',
                    self.name, self.domain)
            else:
                logger.error('Logout status was unexpected. Received response '
                    'with status code: %s', (r.status_code))

        except requests.exceptions.SSLError as e:
            logger.error('SSL exception thrown during logout: %s', e)
        except requests.exceptions.ConnectionError as e:
            logger.error('Connection error on logout: %s', e)
        finally:
            self.entry_points.clear()
            self.manager._deregister(self)
            self._session = None
            try:
                delattr(self, 'current_user')
            except AttributeError:
                pass
        
        logger.debug('Call counters: %s' % counters)
1021921
public function actionLogout()
    {
        Yii::$app->user->logout();
        $back = Yii::$app->request->post('back') ?: Yii::$app->request->get('back');

        return $back ? $this->redirect($back) : $this->goHome();
    }
217141
public static void logout() {
		GwtCommandDispatcher dispatcher = GwtCommandDispatcher.getInstance();
		if (null != dispatcher.getUserToken()) {
			GwtCommand command = new GwtCommand(LogoutRequest.COMMAND);
			dispatcher.logout();
			dispatcher.execute(command);
		}
	}
238273
def logout(self, request):
        ""
        from django.contrib.auth import logout

        logout(request)

        return HttpResponseRedirect(reverse('nexus:index', current_app=self.name))
1207653
def mouse_out(self):
        
        self.scroll_to()
        ActionChains(self.parent.driver).move_by_offset(0, 0).click().perform()
125290
public function logout()
  {
    $this->request("logout");
    $this->whoamiReset();

    $this->delStorage("_login_user");
    $this->delStorage("_login_pass");

    TeamSpeak3_Helper_Signal::getInstance()->emit("notifyLogout", $this);
  }
1259555
def logout(self):
        ''''''
        headers = {"Content-type": "application/x-www-form-urlencoded","Accept": "text/plain","User-Agent": user_agent}
        self.session.get('http://'+self.domain+'/logout.phtml',headers=headers)
1218920
public void doLogout(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
        if (!common.checkPost(request, response)) return;
        request.getSession().removeAttribute("logged-in-username");
        response.sendRedirect("/");
    }
721909
def logout(self):
        
        self._logout()
        self.disconnect()
        self.user = ''
        self.password = ''
528945
def _do_logoff(self):
        
        session_uri = '/api/sessions/this-session'
        self.delete(session_uri, logon_required=False)
        self._session_id = None
        self._session = None
        self._headers.pop('X-API-Session', None)
419367
public function handleLogoutTryRole(): void
	{
		if (!empty($this->id)) {
			unset($this->session[$this->id]);
			$this->id = null;
		}
		$this->presenter->redirect('this');
	}