Perform logout and clear the session token from the config.
<p>
{@code POST /logout}

@return true if the logout was successful, otherwise false
160769
public CompletionStage<Boolean> logout() {
        return asyncHttpClient
                .post(uri.resolve("logout"), "", JsonParser.STRING)
                .thenApply(s -> "Your token has been cleared".contentEquals(s.getResult()));
    }
1020141
public function logout()
    {
        $this->execute($this->httpClient->setEndPoint(self::ENDPOINT.'logout/'));

        self::$appKey = null;
        self::$sessionToken = null;
        self::$lastLogin = null;
    }
1244136
public function logout()
    {
        $returnValue = (bool) false;

        $returnValue = $this->generisUserService->logout();

        return (bool) $returnValue;
    }
751957
public final boolean abort()
    {
        boolean ret = false;

        if (UserLoginModule.LOG.isDebugEnabled()) {
            UserLoginModule.LOG.debug("Abort of " + this.principal);
        }

        // If our authentication was successful, just return false
        if (this.principal != null) {

            // Clean up if overall authentication failed
            if (this.committed) {
                this.subject.getPrincipals().remove(this.principal);
            }
            this.committed = false;
            this.principal = null;
            ret = true;
        }
        return ret;
    }
937112
function doLogout() {
	check(http.get(baseURL + "/user/logout"), {
		"logout succeeded": (res) => res.body.includes('<a href="/user/login">Log in')
	}) || fail("logout failed");
}
683547
@SuppressWarnings("unchecked")
    @Override
    public Boolean execute() {
        api.logout(CommandUtil.getSfsUser(username, api));
        return Boolean.TRUE;
    }
392882
public function logout()
    {
        if (!$this->is_loggedin) {
            return false;
        }

        $this->exec_curl('/logout');
        $this->is_loggedin = false;
        $this->cookies     = '';

        return true;
    }
550990
@Override
    public void logout(HttpServletRequest req,
                       HttpServletResponse res,
                       WebAppSecurityConfig webAppSecConfig) throws AuthenticationException {
        Subject subject = null;
        WebRequest webRequest = new WebRequestImpl(req, res, null, null, null, null, webAppSecConfig);
        JaspiRequest jaspiRequest = new JaspiRequest(webRequest, null);
        AuthConfigProvider provider = getAuthConfigProvider(jaspiRequest.getAppContext());
        if (provider != null) {
            try {
                ServerAuthContext authContext = getServerAuthContext(jaspiRequest, provider);
                MessageInfo msgInfo = newMessageInfo(jaspiRequest);
                subject = getSubjectManager().getInvocationSubject();
                if (subject == null) {
                    subject = new Subject();
                }
                if (tc.isDebugEnabled())
                    Tr.debug(tc, "cleanSubject with Jaspi", new Object[] { "authContext=" + authContext, msgInfo });
                authContext.cleanSubject(msgInfo, subject);
            } catch (AuthException e) {
                AuthenticationException ex = new AuthenticationException("JASPI cleanSubject failure: " + e);
                ex.initCause(e);
                throw ex;
            }
        }

        AuthenticationResult authResult = new AuthenticationResult(AuthResult.SUCCESS, subject);

        authResult.setAuditCredType(AuditEvent.CRED_TYPE_JASPIC);
        if (provider != null)
            authResult.setAuditAuthConfigProviderName(provider.getClass().toString());
        authResult.setAuditAuthConfigProviderAuthType(getRequestAuthType(jaspiRequest.getHttpServletRequest(), "AUTH_TYPE"));
        authResult.setAuditOutcome(AuditEvent.OUTCOME_SUCCESS);
        Audit.audit(Audit.EventID.SECURITY_API_AUTHN_TERMINATE_01, req, authResult, Integer.valueOf(res.getStatus()));

    }
919082
public boolean onLogout()
    {
        App application = this.getTask().getApplication();
        int iErrorCode = application.login(this.getTask(), null, null, this.getProperty(DBParams.DOMAIN));
        if (iErrorCode != DBConstants.NORMAL_RETURN)
            return false;
        String strMenu = this.getProperty(DBParams.HOME);
        if (strMenu == null)
            strMenu = this.getTask().getProperty(DBParams.MENU);
        if (strMenu != null)
        {
            BasePanel screenParent = this.getParentScreen();
			int count = 0;
			while (screenParent.popHistory(1, false) != null)
			{
				count++;
			}
			count--;	// Want to move back to the first one
			if (count > 0)
				popHistory(count, true);		// Dump all browser history
            Map<String,Object> properties = this.getProperties();
            this.finalizeThisScreen();  // Validate current control, update record, get ready to close screen.
            if (!(this instanceof MenuScreen))
            {
                this.free();
                new MenuScreen(null, null, screenParent, null, ScreenConstants.MAINT_MODE, properties);
            }
            else
                this.doCommand("?" +  DBParams.MENU + '=' + strMenu, this, ScreenConstants.USE_SAME_WINDOW | DBConstants.PUSH_TO_BROWSER);
        }
        return true;   // Should always be successful        
    }
907915
@GET
  @Path("logout")
  public Response logout() throws URISyntaxException {
    return Response
        .temporaryRedirect(new URI("/"))
        .cookie(createCookie(null, 0))
        .build();
  }
1039798
@Override
    public void logout(boolean force, String target, String message) {
        log.trace("Logging Out");
        IContextManager contextManager = ContextManager.getInstance();

        if (contextManager == null) {
            logout(target, message);
        } else {
            contextManager.reset(force, (response) -> {
                if (force || !response.rejected()) {
                    logout(target, message);
                }
            });
        }
853291
public function logout(): bool
    {
        //remove login data from session
        unset($this->session->login, $this->session->loginTime);

        //regenerate session id
        $this->session->regenerate();
        $this->logged = false;

        return true;
    }
676782
public function logout() {
        global $SESSION;
        unset($SESSION->{$this->sess_tag});
        unset($SESSION->{$this->sess_text});
        unset($SESSION->{$this->sess_account});
        return $this->print_login();
    }
217141
public static void logout() {
		GwtCommandDispatcher dispatcher = GwtCommandDispatcher.getInstance();
		if (null != dispatcher.getUserToken()) {
			GwtCommand command = new GwtCommand(LogoutRequest.COMMAND);
			dispatcher.logout();
			dispatcher.execute(command);
		}
	}
525554
public function logout()
    {
        if ($this->instance instanceof \Phavour\Session\Storage) {
            if ($this->instance->isLocked()) {
                $this->instance->unlock();
            }
            $this->instance->destroy();
        }

        return false;
    }
663788
public function logOut()
    {
        try {
            $this->revokeTokens();
        } catch (BadResponseException $e) {
            // Retry the request once.
            if ($e->getResponse() && $e->getResponse()->getStatusCode() < 500) {
                $this->revokeTokens();
            }
        } finally {
            $this->session->clear();
            $this->session->save();
        }
    }
249889
public login logout() throws Exception
	{
		if(sessionid == null || sessionid.length() <= 0)
			throw new Exception("User not logged-in");
		
		login logout_obj = new login();
		logout_obj.set_sessionid(sessionid);
		
		login result = login.delete(this, logout_obj);
		sessionid = null;
		user_name = null;
		password = null;
		return result;
	}