SessionOptions.CookieHttpOnly 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.HttpOnly.
此屬性已過時,未來版本將會移除。 建議的替代方案是在 上 Cookie 。
決定瀏覽器是否應該允許 Cookie 由用戶端 JavaScript 存取。 預設值為 true,這表示 Cookie 只會傳遞至 HTTP 要求,而且無法提供給頁面上的腳本使用。
public:
property bool CookieHttpOnly { bool get(); void set(bool value); };
public bool CookieHttpOnly { get; set; }
[System.Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.HttpOnly.")]
public bool CookieHttpOnly { get; set; }
member this.CookieHttpOnly : bool with get, set
[<System.Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.HttpOnly.")>]
member this.CookieHttpOnly : bool with get, set
Public Property CookieHttpOnly As Boolean
屬性值
- 屬性