CookieOptions.Secure 屬性

定義

取得或設定值,這個值表示是否只透過 HTTPS 使用安全通訊端層 (SSL) 傳輸 Cookie。

public:
 property bool Secure { bool get(); void set(bool value); };
public bool Secure { get; set; }
member this.Secure : bool with get, set
Public Property Secure As Boolean

屬性值

true 表示只透過 SSL 連線 (HTTPS) 傳送 Cookie,否則為 false。

適用於