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。

适用于