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;
}