phpCAS::setSingleSignoutCallback PHP Method

setSingleSignoutCallback() public static method

Set a callback function to be run when a single-signout request is received. The callback function will be passed a $logoutTicket as its first parameter, followed by any $additionalArgs you pass. The $logoutTicket parameter is an opaque string that can be used to map a session-id to the logout request in order to support single-signout in applications that manage their own sessions (rather than letting phpCAS start and destroy the session).
public static setSingleSignoutCallback ( string $function, array $additionalArgs = [] ) : void
$function string Callback function
$additionalArgs array optional array of arguments
return void
    public static function setSingleSignoutCallback($function, array $additionalArgs = array())
    {
        phpCAS::_validateClientExists();
        self::$_PHPCAS_CLIENT->setSingleSignoutCallback($function, $additionalArgs);
    }

Usage Example

Ejemplo n.º 1
0
function casSetup()
{
    global $CASAuth;
    global $casIsSetUp;
    require_once $CASAuth["phpCAS"] . "/CAS.php";
    phpCAS::client($CASAuth["Version"], $CASAuth["Server"], $CASAuth["Port"], $CASAuth["Url"], false);
    phpCAS::setSingleSignoutCallback('casSingleSignOut');
    phpCAS::setPostAuthenticateCallback('casPostAuth');
    phpCAS::handleLogoutRequests(true, isset($CASAuth["LogoutServers"]) ? $CASAuth["LogoutServers"] : false);
    phpCAS::setNoCasServerValidation();
    $casIsSetUp = true;
}
All Usage Examples Of phpCAS::setSingleSignoutCallback