Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WSFederationAuthenticationModule.SigningOut Event

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Occurs before deleting the session during sign-out.

Namespace:   System.IdentityModel.Services
Assembly:  System.IdentityModel.Services (in System.IdentityModel.Services.dll)

public event EventHandler<SigningOutEventArgs> SigningOut

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.

.NET Framework
Available since 4.5
Return to top
© 2018 Microsoft