Explicit Abode logout.
167737
def logout(self):
        """"""
        if self._token:
            header_data = {
                'ABODE-API-KEY': self._token
            }

            self._session = requests.session()
            self._token = None
            self._panel = None
            self._user = None
            self._devices = None
            self._automations = None

            try:
                response = self._session.post(
                    CONST.LOGOUT_URL, headers=header_data)
                response_object = json.loads(response.text)
            except OSError as exc:
                _LOGGER.warning("Caught exception during logout: %s", str(exc))
                return False

            if response.status_code != 200:
                raise AbodeAuthenticationException(
                    (response.status_code, response_object['message']))

            _LOGGER.debug("Logout Response: %s", response.text)

            _LOGGER.info("Logout successful")

        return True
189604
def logout_view(request):
    """"""
    do_logout(request)

    app_redirects = {"collegerecs": "https://apps.tjhsst.edu/collegerecs/logout?ion_logout=1"}
    app = request.GET.get("app", "")
    if app and app in app_redirects:
        return redirect(app_redirects[app])

    return redirect("index")
868925
def logout(self):
        """"""

        # Check if all transfers are complete before logout
        self.transfers_complete

        payload = {
            'apikey': self.config.get('apikey'),
            'logintoken': self.session.cookies.get('logintoken')
            }

        method, url = get_URL('logout')
        res = getattr(self.session, method)(url, params=payload)

        if res.status_code == 200:
            self.session.cookies['logintoken'] = None
            return True

        hellraiser(res)
228125
def logout(self):
        """"""
        if self._logged_in is True:
            self.si.flush_cache()
            self.sc.sessionManager.Logout()
            self._logged_in = False
970494
def logout(request):
    """"""
    request.response.headers.extend(forget(request))
    return {'redirect': request.POST.get('came_from', '/')}
238372
public function logout() {
        $this->debug('logout', $this->Cookie, $this->Auth->user());
        $this->delete();
    }
647387
public function logoffAction()
    {
        $this->addMessage(sprintf($this->_('Good bye: %s.'), $this->currentUser->getFullName()));
        $this->accesslog->logChange($this->getRequest());
        $this->currentUser->unsetAsCurrentUser();
        \Zend_Session::destroy();
        $this->_reroute(array('action' => 'index'), true);
    }
429105
def logout():
    
    from uliweb import request

    delete_user_session()
    request.session.delete()
    request.user = None
    return True
1304901
def logout(request, redirect_url=settings.LOGOUT_REDIRECT_URL):
    
    django_logout(request)
    return HttpResponseRedirect(request.build_absolute_uri(redirect_url))
1199589
function logout() {
    currentUser = null;
    delete config.usr;
    delete config.pwd;
    Storage.local.set( "nigolotua", null );
    exports.eventChange.fire();
    return svc( "tfw.login.Logout" );
}
1333559
def logoff(self):
		
		self.send(C1218LogoffRequest())
		data = self.recv()
		if data == b'\x00':
			self._initialized = False
			return True
		return False
405632
def logout(self):
        
        self.client.write('exit\r\n')
        self.client.read_all()
        self.client.close()
469114
function logout(){
    console.log('Logout called');
    grout.logout().then(function(){
      console.log('successful logout');
      setStatus();
    }, function (err){
      console.error('logout() : Error logging out:', err);
    });
  }
103437
function logout() {
    if (exports.currentLogin === null) {
        log_1.logger.debug(`[API] Already logged out`);
        return Promise.resolve();
    }
    log_1.logger.info(`[API] Logging out ${exports.currentLogin.username}`);
    return get('logout', null, true).then(() => {
        clearHeaders();
        exports.currentLogin = null;
    });
}
677152
def logout(self):
        
        ret = False
        if self.login_result is True:
            ret = self.__get_status_code(self.__request('logout')) == 200
            self.login_result = None
        return ret
310415
def logout(self):
        
        self.req(API_ACCOUNT_LOGOUT % self.ck())
        self.cookies = {}
        self.user_alias = None
        self.persist()
642175
def logout_user(f):
    

    @functools.wraps(f)
    def deco(*a, **kw):
        signals.user_logout(lambda: flask_login.current_user)
        flask_login.logout_user()
        return f(*a, **kw)

    return deco