Horde_Registry::clearAuthApp PHP Method

clearAuthApp() public method

Clears authentication tokens for a given application in the current session.
public clearAuthApp ( $app ) : boolean
return boolean If false, did not remove authentication token because the application is in control of Horde's auth.
    public function clearAuthApp($app)
    {
        global $session;
        if ($session->get('horde', 'auth/credentials') == $app) {
            return false;
        }
        if ($this->isAuthenticated(array('app' => $app, 'notransparent' => true))) {
            $this->callAppMethod($app, 'logout');
            $session->remove($app);
            $session->remove('horde', 'auth_app/' . $app);
            $session->remove('horde', 'auth_app_init/' . $app);
        }
        unset($this->_cache['existing'][$app], $this->_cache['isauth'][$app]);
        return true;
    }