Occurs before deleting the session during sign-out.
Assembly: System.IdentityModel.Services (in System.IdentityModel.Services.dll)
This event is raised through a call to the OnSigningOut method from inside the WSFederationAuthenticationModule.SignOut(Boolean) method while signing out of the session at the relying party (RP). The event is not raised when doing federated sign-out through the FederatedSignOut method.
You can add an event handler to perform any additional processing that is needed by your application before the session cookie is deleted. You can read the IsIPInitiated property in the event handler to determine whether the sign-out is the result of receiving a WS-Federation sign-out clean-up request message (“wsignoutcleanup1.0”) from a security token service (STS) or whether it was initiated at the RP.
This event is not guaranteed to be called for every session. Cookies may be deleted at the client side, for example, so this event would never be raised.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.