SessionOptions.CookieHttpOnly 屬性

定義

警告

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

屬性值

屬性

適用於