AuthenticationService.Logout Metod

Definition

Rensar autentiseringsbiljetten (cookie) i webbläsaren.

public:
 void Logout();
[System.ServiceModel.OperationContract]
public void Logout();
[<System.ServiceModel.OperationContract>]
member this.Logout : unit -> unit
Public Sub Logout ()
Attribut

Kommentarer

Metoden Logout rensar autentiseringscookien från webbläsarens cookiesamling. Användaren måste logga in igen för att autentiseras.

Klassen AuthenticationService lagrar inte information på servern om vilka autentiseringsbiljetter som har rensats.

Note

Anropa Logout inte metoden från kod som körs på webbservern. Du anropar Logout metoden endast som en del av en WCF-tjänst. Mer information finns i ASP.NET Authentication.

Gäller för

Se även