AuthenticationService.Logout Method


Clears the authentication ticket (cookie) in the browser.

 void Logout();
public void Logout ();
member this.Logout : unit -> unit
Public Sub Logout ()


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.


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