phpCAS::logoutWithRedirectService PHP Method

logoutWithRedirectService() public static method

This method is used to logout from CAS. Halts by redirecting to the CAS server.
public static logoutWithRedirectService ( string $service ) : void
$service string a URL that will be transmitted to the CAS server
return void
    public static function logoutWithRedirectService($service)
    {
        phpCAS::traceBegin();
        phpCAS::_validateClientExists();
        if (!is_string($service)) {
            phpCAS::error('type mismatched for parameter $service (should be `string\')');
        }
        self::$_PHPCAS_CLIENT->logout(array("service" => $service));
        // never reached
        phpCAS::traceEnd();
    }

Usage Example

Ejemplo n.º 1
0
 public static function logout($parameters)
 {
     if (phpCAS::isAuthenticated()) {
         phpCAS::logoutWithRedirectService(OC::$server->getURLGenerator()->getAbsoluteURL(""));
     }
     return true;
 }
All Usage Examples Of phpCAS::logoutWithRedirectService