CAS_Client::getServerLogoutURL PHP Method

getServerLogoutURL() public method

This method is used to retrieve the logout URL of the CAS server.
public getServerLogoutURL ( ) : string
return string logout URL.
    public function getServerLogoutURL()
    {
        // the URL is build only when needed
        if (empty($this->_server['logout_url'])) {
            $this->_server['logout_url'] = $this->_getServerBaseURL() . 'logout';
        }
        return $this->_server['logout_url'];
    }

Usage Example

示例#1
0
文件: CAS.php 项目: DCUnit711/Demeter
 /**
  * This method returns the URL to be used to login.
  * or phpCAS::isAuthenticated().
  *
  * @return the login name of the authenticated user
  */
 public static function getServerLogoutURL()
 {
     phpCAS::_validateClientExists();
     return self::$_PHPCAS_CLIENT->getServerLogoutURL();
 }
CAS_Client