AuthenticationService.Logout Method
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.
Clears the authentication ticket (cookie) in the browser.
public:
void Logout();
[System.ServiceModel.OperationContract]
public void Logout ();
[<System.ServiceModel.OperationContract>]
member this.Logout : unit -> unit
Public Sub Logout ()
- Attributes
Remarks
The Logout method clears the authentication cookie from the browser's cookie collection. The user must log in again to be authenticated.
The AuthenticationService class does not store information on the server about which authentication tickets have been cleared.
Note
Do not call the Logout method from code that is executing on the Web server. You call the Logout method only as part of a WCF service. For more information, see ASP.NET Authentication.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Bald verfügbar: Im Laufe des Jahres 2024 werden wir GitHub-Issues stufenweise als Feedbackmechanismus für Inhalte abbauen und durch ein neues Feedbacksystem ersetzen. Weitere Informationen finden Sie unterFeedback senden und anzeigen für