Logout from the Chat. {@link https://quickblox.com/developers/Web_XMPP_Chat_Sample#Logout_from_Chat More info.}
@memberof QB.chat
18090
function() {
        clearInterval(this._checkConnectionTimer);
        this._checkConnectionTimer = undefined;
        this.muc.joinedRooms = {};
        this._isLogout = true;
        this.helpers.setUserCurrentJid('');

        if (Utils.getEnv().browser) {
            this.connection.flush();
            this.connection.disconnect();
        } else {
            this.Client.end();
        }
    }
60714
protected void logOut(O out) {
        String s = "";
        if (out != null) {
            s = outToString(out);
        }
        if (LOG.isTraceEnabled()) {
            LOG.trace("Process result: " + s);
        } else if (LOG.isDebugEnabled()) {
            if (s.length() > 4000)
                s = s.substring(0, 4000) + "...";
            LOG.debug("Process result: " + s);
        }
    }
383627
void exit() {

        if (m_changed) {
            CmsConfirmationDialog.show(
                CmsVaadinUtils.getMessageText(org.opencms.ui.apps.Messages.GUI_EDITOR_CLOSE_CAPTION_0),
                CmsVaadinUtils.getMessageText(org.opencms.ui.apps.Messages.GUI_EDITOR_CLOSE_TEXT_0),
                new Runnable() {

                    public void run() {

                        exitInternal();
                    }
                });
        } else {
            exitInternal();
        }

    }
990273
def logout(self):
        
        self.bbox_auth.set_access(BboxConstant.AUTHENTICATION_LEVEL_PUBLIC, BboxConstant.AUTHENTICATION_LEVEL_PUBLIC)
        self.bbox_url.set_api_name("logout", None)
        api = BboxApiCall(self.bbox_url, BboxConstant.HTTP_METHOD_POST, None,
                          self.bbox_auth)
        response = api.execute_api_request()
        if response.status_code == 200:
            self.bbox_auth.set_cookie_id(None)
        return not self.bbox_auth.is_authentified()
861224
public synchronized boolean logon ()
    {
        // if we have a communicator reference, we're already logged on
        if (_comm != null) {
            return false;
        }

        // notify our observers immediately
        _observers.apply(new ObserverOps.Session(this) {
            @Override protected void notify (SessionObserver obs) {
                obs.clientWillLogon(_client);
            }
        });

        // create a new communicator and start it up; this will initiate the logon process
        _comm = createCommunicator();
        _comm.setClassLoader(_loader);
        _comm.logon();

        // register an interval to keep the clock synced and to send pings when appropriate
        if (_tickInterval == null) {
            _tickInterval = new Interval(_runQueue) {
                @Override public void expired () {
                    tick();
                }
                @Override public String toString () {
                    return "Client.tickInterval";
                }
            };
            _tickInterval.schedule(5000L, true);
        }

        return true;
    }
1131316
public function logout()
    {
        Piwik::postEvent('Login.logout', array(Piwik::getCurrentUserLogin()));

        self::clearSession();

        $logoutUrl = @Config::getInstance()->General['login_logout_url'];
        if (empty($logoutUrl)) {
            Piwik::redirectToModule('CoreHome');
        } else {
            Url::redirectToUrl($logoutUrl);
        }
    }
41178
public function logoutAction()
    {
        \App\Registry::$auth->clearIdentity();
        $this->getMessenger()->addMessage('messenger.index.logout.success', true);
        //hit do statystyk
        \Cms\Model\Stat::hit('admin-logout');
        $this->getResponse()->redirect('cmsAdmin');
    }
132328
public function logoutSession()
    {
        $url = $this->serverUrl . "/logout.html";
        $this->restReq->prepAndSend($url, array(302), 'GET');     // Kill server session
        $this->restReq->closeCurlHandle(true);                    // cleanup client resources
    }
395021
public synchronized boolean logOut() {
        if (!isLoggedIn()) {
            return false;
        }

        mAuthenticationResult.clear();
        mAuthenticationResult = null;

        EvernoteUtil.removeAllCookies(getApplicationContext());
        return true;
    }
905212
def __Logout(si):
   
   try:
      if si:
         content = si.RetrieveContent()
         content.sessionManager.Logout()
   except Exception as e:
      pass
967669
public function logout()
    {
        $result = false;
        if ($this->_socket) {
            try {
                $result = $this->requestAndResponse('LOGOUT', array(), true);
            } catch (Zend_Mail_Protocol_Exception $e) {
                // ignoring exception
            }
            fclose($this->_socket);
            $this->_socket = null;
        }
        return $result;
    }
903257
public void logout() throws IOException {

        String loggedInUserName = getRequestContext().getCurrentUser().getName();
        HttpSession session = getRequest().getSession(false);
        if (session != null) {
            session.invalidate();
            /* we need this because a new session might be created after this method,
             but before the session info is updated in OpenCmsCore.showResource. */
            getCmsObject().getRequestContext().setUpdateSessionEnabled(false);
        }
        // logout was successful
        if (LOG.isInfoEnabled()) {
            LOG.info(
                Messages.get().getBundle().key(
                    Messages.LOG_LOGOUT_SUCCESFUL_3,
                    loggedInUserName,
                    getRequestContext().addSiteRoot(getRequestContext().getUri()),
                    getRequestContext().getRemoteAddress()));
        }
        getResponse().sendRedirect(getFormLink());
    }
135502
function onDialogDelete() {
    if (confirm('Are you sure you want remove the dialog?')) {
        QB.chat.dialog.delete(currentDialog._id, function(err, res) {
            if (err) {
                console.error(err);
            } else {
                console.info('Dialog removed');

                updateUIWhenDeletedDialog(currentDialog._id);
            }
        });

        $("#update_dialog").modal("hide");
        $('#update_dialog .progress').show();
    }
}
160769
public CompletionStage<Boolean> logout() {
        return asyncHttpClient
                .post(uri.resolve("logout"), "", JsonParser.STRING)
                .thenApply(s -> "Your token has been cleared".contentEquals(s.getResult()));
    }
808551
def logout
      r = execute(make_xml('LogoutRequest', { 'sync-id' => 0 }))
      return true if r.success
      raise APIError.new(r, 'Logout failed')
    end
131316
def logout(self, callback=None):
        """"""
        self.ddp_client.call('logout', [], callback=callback)
        self.emit('logged_out')
383004
public static function logout() {
		$_SESSION = [];
		session_destroy();
		session_unset();
		self::$isGuest = true;
		self::$user = user::guest();
	}