CookieOptions.HttpOnly 屬性

定義

取得或設定值,這個值表示用戶端腳本是否無法存取 Cookie。

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

屬性值

如果用戶端腳本無法存取 Cookie,則為 true;否則為 false。

適用於