SessionAuthenticationModule.SigningOut Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs before deleting the sign-in session.
public:
event EventHandler<System::IdentityModel::Services::SigningOutEventArgs ^> ^ SigningOut;
public event EventHandler<System.IdentityModel.Services.SigningOutEventArgs> SigningOut;
member this.SigningOut : EventHandler<System.IdentityModel.Services.SigningOutEventArgs>
Public Custom Event SigningOut As EventHandler(Of SigningOutEventArgs)
Public Event SigningOut As EventHandler(Of SigningOutEventArgs)
Event Type
Examples
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");
}
Remarks
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.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om