SigningOut Event
Collapse the table of content
Expand the table of content

SessionAuthenticationModule.SigningOut Event

.NET Framework (current version)
 

Occurs before deleting the sign-in session.

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

public event EventHandler<SigningOutEventArgs> SigningOut

Raised from the SignOut method just before the DeleteSessionTokenCookie method is invoked.

This event is not guaranteed to be called for every session. For example, the cookies may be deleted at the client-side, in which case, this event would never be raised because there is no server-side event for deleting the session.

The following code shows a handler for the SigningOut event implemented in the global.asax.cs file of an ASP.NET web application. You must also add the handler to the event. A more complete example is shown in the SessionAuthenticationModule overview topic.

void SessionAuthenticationModule_SigningOut(object sender, SigningOutEventArgs e)
{
    System.Diagnostics.Trace.WriteLine("Handling SigningOut event");
}

.NET Framework
Available since 4.5
Return to top
Show:
© 2016 Microsoft