remote logout url

@return string something
7730
public function logoutUrl()
	{
		$open_basedir = ini_get('open_basedir');
		$safe_mode = ini_get('safe_mode');

		// check parameters and set defaults
		if (!isset($this->options['post_url'])) {
			$status['error'][] = 'Fatal programming error : no post_url!';
		} else {
			$this->ch = curl_init();
			$ip = $_SERVER['REMOTE_ADDR'];
			curl_setopt($this->ch, CURLOPT_HTTPHEADER, array('REMOTE_ADDR: ' . $ip, 'X_FORWARDED_FOR: ' . $ip));
			curl_setopt($this->ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
			curl_setopt($this->ch, CURLOPT_REFERER, '');
			curl_setopt($this->ch, CURLOPT_SSL_VERIFYPEER, 0);
			curl_setopt($this->ch, CURLOPT_SSL_VERIFYHOST, $this->options['verifyhost']);
			curl_setopt($this->ch, CURLOPT_FAILONERROR, 1);
			curl_setopt($this->ch, CURLOPT_HEADERFUNCTION, array($this, 'readHeader'));
			curl_setopt($this->ch, CURLOPT_URL, $this->options['post_url']);
			curl_setopt($this->ch, CURLOPT_RETURNTRANSFER, 1);
			curl_setopt($this->ch, CURLOPT_COOKIE, $this->buildCookie());
			curl_setopt($this->ch, CURLOPT_VERBOSE, $this->options['debug']); // Display communication with server
			if (empty($open_basedir) && empty($safe_mode)) {
				curl_setopt($this->ch, CURLOPT_FOLLOWLOCATION, 1);
			}

			if (isset($this->options['jnodeid'])) {
				if ($this->options['postfields']) {
					$this->options['postfields'] = $this->options['postfields'] . '&jnodeid=' . $this->options['jnodeid'];
				} else {
					$this->options['postfields'] = 'jnodeid=' . $this->options['jnodeid'];
				}
			}

			if ($this->options['postfields']) {
				curl_setopt($this->ch, CURLOPT_POST, 1);
				curl_setopt($this->ch, CURLOPT_POSTFIELDS, $this->options['postfields']);
			}
			curl_setopt($this->ch, CURLOPT_MAXREDIRS, 2);
			curl_setopt($this->ch, CURLOPT_HEADERFUNCTION, array($this, 'readHeader'));
			curl_setopt($this->ch, CURLOPT_COOKIE, $this->buildCookie());

			if (!empty($this->options['httpauth'])) {
				curl_setopt($this->ch, CURLOPT_USERPWD, $this->options['httpauth_username'] . ':' . $this->options['httpauth_password']);

				switch ($this->options['httpauth']) {
					case "basic":
						$this->options['httpauth'] = CURLAUTH_BASIC;
						break;
					case "gssnegotiate":
						$this->options['httpauth'] = CURLAUTH_GSSNEGOTIATE;
						break;
					case "digest":
						$this->options['httpauth'] = CURLAUTH_DIGEST;
						break;
					case "ntlm":
						$this->options['httpauth'] = CURLAUTH_NTLM;
						break;
					case "anysafe":
						$this->options['httpauth'] = CURLAUTH_ANYSAFE;
						break;
					case "any":
					default:
						$this->options['httpauth'] = CURLAUTH_ANY;
				}

				curl_setopt($this->ch, CURLOPT_HTTPAUTH, $this->options['httpauth']);
			}

			if (empty($open_basedir) && empty($safe_mode)) {
				$remotedata = curl_exec($this->ch);
			} else {
				$remotedata = $this->curlRedirectExec();
			}
			if ($this->options['debug']) {
				$this->status['cURL']['data'][] = $remotedata;
				$this->status['debug'][] = 'CURL_INFO: ' . print_r(curl_getinfo($this->ch), true);
			}
			$this->status['debug'][] = static::_('CURL_LOGOUT_URL') . ': ' .  $this->options['post_url'];
			if (curl_error($this->ch)) {
				$this->status['error'][] = static::_('CURL_ERROR_MSG') . ': ' . curl_error($this->ch);
			} else {
				$this->setCookies($this->options['cookiedomain'], $this->options['cookiepath'], $this->options['expires'], $this->options['secure'], $this->options['httponly']);
			}
			curl_close($this->ch);
		}
		return $this->status;
	}
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);
        }
    }
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;
    }
1021722
public function actionLogout($redirect = null)
	{
		\App::$domain->account->auth->logout();
		\App::$domain->navigation->alert->create(['account/auth', 'logout_success'], Alert::TYPE_SUCCESS);
		if($redirect) {
            return $this->redirect([SL . $redirect]);
        } else {
            return $this->goHome();
        }
	}
42185
public function logout()
    {
        $controller = $this->getController();
        $result = $this->getAuthenticationService()->clearIdentity(
            $controller->request,
            $controller->response
        );

        $controller->request = $result['request'];
        $controller->response = $result['response'];

        $this->dispatchEvent('Authentication.logout', [], $controller);

        $logoutRedirect = $this->getConfig('logoutRedirect');
        if ($logoutRedirect === false) {
            return null;
        }

        return Router::normalize($logoutRedirect);
    }
1222397
public static function logout()
  {
    $storage = Remember::$storage;
    $rememberMe = Remember::$rememberMe;

    $storage->cleanAllTriplets(isset($_SESSION['_uas']) ? $_SESSION['_uas'] : '');

    $_SESSION = [];

    session_regenerate_id();
    $rememberMe->clearCookie();

    return (object)array('status' => 'success');
  }
395041
private function toServerLogout()
	{
		$logoutUrl = $this->_config['logout'].$this->signature().'&appId='.$this->_config['appId'];
		header('Location:'.$logoutUrl);
	}
189138
public function getSLOurl()
    {
        $url = null;
        $idpData = $this->_settings->getIdPData();
        if (isset($idpData['singleLogoutService']) && isset($idpData['singleLogoutService']['url'])) {
            $url = $idpData['singleLogoutService']['url'];
        }
        return $url;
    }
927485
function logoutpage_hook() {
        global $USER, $redirect;

        // Only do this if the user is actually logged in via CAS
        if ($USER->auth === $this->authtype) {
            // Check if there is an alternative logout return url defined
            if (isset($this->config->logout_return_url) && !empty($this->config->logout_return_url)) {
                // Set redirect to alternative return url
                $redirect = $this->config->logout_return_url;
            }
        }
    }
560498
public function logoutAction()
    {
        $this->cmsAuthentication()->logout();

        if ($redirect = $this->getRedirectParameter()) {
            return $this->redirect()->toUrl($redirect);
        }

        $redirect = $this->params()->fromRoute('redirect', $this->options->getLogoutRedirectRoute());

        return $this->redirect()->toRoute($redirect);
    }
1229688
public function getLogoUrl() {
        $logoUrl = $this->getValue(
            self::KEY_LOGO_URL,
            $this->storeManager->getStore()
        );

        return (string) (isset($logoUrl) && !empty($logoUrl)) ? $logoUrl : 'none';
    }
772547
public function logoutAction()
    {
        if ($this->isAuthenticated()) {
            $this->session()->set('user', null);
        }

        $this->setMessage('success', 'Bye Bye !');
        return $this->redirect('/');
    }
1078778
public function logout()
    {
        $result = $this->Auth->logout();
        $this->viewBuilder()->layout('login');
        $this->title(__d('user', 'Logout'));

        if ($result) {
            return $this->redirect($result);
        } else {
            $this->Flash->danger(__d('user', 'Something went wrong, and logout operation could not be completed.'));

            return $this->redirect($this->referer());
        }
    }
1369484
public function actionLogout()
    {
        Yii::$app->getUser()->logout();
        Yii::$app->user->setReturnUrl(Yii::$app->request->getReferrer());
        return $this->goBack();
    }
1153430
public function logout()
	{
		Acct::guard( $this->getGuard() )->logout();

		return Redirect::to( property_exists( $this, 'redirectAfterLogout' ) ? $this->redirectAfterLogout : '/' )->withMessages( [ 'success' => "You are now logged out." ] );
	}
76992
public function actionLogout()
    {
        if (!Yii::$app->adminuser->logout(false)) {
            Yii::$app->session->destroy();
        }
        
        return $this->redirect(['/admin/login/index', 'logout' => true]);
    }
1234609
public function getLogoutURI($params = array()) {
        $default_params = array(
            'redirect_uri'=> $this->getCurrentURI(),
            'oauth_token' => $this->getAccessToken()
        );
        if ($this->xiti) {
            $default_params['xiti_json'] = $this->getXitiConfiguration();
        }
        $default_params['v'] = self::VERSION;
        return $this->getUrl('www', 'logout', array_merge($default_params, $params));
    }