SessionOptions.CookieHttpOnly 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.HttpOnly.
此属性已过时,将在将来的版本中删除。 建议的替代项是在 上 Cookie。
确定浏览器是否应该允许客户端 JavaScript 访问 Cookie。 默认值为 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
属性值
- 属性