WSFederationAuthenticationModule.SignOut Method (Boolean)
Signs out of the current session and raises the appropriate events.
Assembly: System.IdentityModel.Services (in System.IdentityModel.Services.dll)
This method performs the actual work of deleting the current session and raising the appropriate sign-out events. The method does the following:
Invokes the OnSigningOut method to raise the SigningOut event. An event handler can provide any necessary processing before the session is deleted. The P:System.IdentityModel.Services.SigningOutEventArgs.IsIpInitiated property is set according to the isIPRequest parameter.
Calls the SessionAuthenticationModule.DeleteSessionTokenCookie method on the current session authentication manager to delete the session cookie.
If an error occurs during sign-out processing, invokes the OnSignOutError method to raise the SignOutError event. An event handler can cancel the processing and prevent an exception from being returned to the caller of
You can call the WSFederationAuthenticationModule.CanReadSignInResponse(HttpRequestBase, Boolean) method with the isIPRequest parameter set true to sign out of the session when it is processing a WS-Federation sign-out clean-up message (“wsignoutcleanup1.0”).method with the isIPRequest parameter set false to sign out of a session without performing a redirect. The method is ultimately called by all of the other overloaded methods (with the isIPRequest parameter set to false) to perform the sign out handling. The method is called from the
No sign-out request message (“wsignout1.0”) is sent to the security token service (STS). To sign-out at the STS using WS-Federation protocol, use the FederatedSignOut method.
Available since 4.5