Initiates the SLO process.
public logout ( string | null $returnTo = null, array $parameters = [], string | null $nameId = null, string | null $sessionIndex = null, boolean $stay = false, string | null $nameIdFormat = null ) : If | ||
$returnTo | string | null | The target URL the user should be returned to after logout. |
$parameters | array | Extra parameters to be added to the GET |
$nameId | string | null | The NameID that will be set in the LogoutRequest. |
$sessionIndex | string | null | The SessionIndex (taken from the SAML Response in the SSO process). |
$stay | boolean | True if we want to stay (returns the url string) False to redirect |
$nameIdFormat | string | null | The NameID Format will be set in the LogoutRequest. |
Результат | If | $stay is True, it return a string with the SLO URL + LogoutRequest + parameters |