AuthenticationService.Logout 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
清除瀏覽器中的驗證單(cookie)。
public:
void Logout();
[System.ServiceModel.OperationContract]
public void Logout();
[<System.ServiceModel.OperationContract>]
member this.Logout : unit -> unit
Public Sub Logout ()
- 屬性
備註
此 Logout 方法會清除瀏覽器的 Cookie 集合中的認證 Cookie。 使用者必須重新登入才能進行驗證。
該 AuthenticationService 類別不會在伺服器上儲存哪些認證工單已清除的資訊。
Note
不要從網頁伺服器上執行的程式碼呼叫該 Logout 方法。 你只會在 WCF 服務中呼叫這個 Logout 方法。 欲了解更多資訊,請參見 ASP.NET 認證。