CookieHeaderValue.HttpOnly Property
Gets or sets a value that specifies whether a cookie is accessible by client-side script.
Namespace: System.Net.Http.Headers
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
Syntax
'Declaration
Public Property HttpOnly As Boolean
Get
Set
'Usage
Dim instance As CookieHeaderValue
Dim value As Boolean
value = instance.HttpOnly
instance.HttpOnly = value
public bool HttpOnly { get; set; }
public:
property bool HttpOnly {
bool get ();
void set (bool value);
}
member HttpOnly : bool with get, set
function get HttpOnly () : boolean
function set HttpOnly (value : boolean)
Property Value
Type: System.Boolean
true if the cookie has the HttpOnly attribute and cannot be accessed through a client-side script; otherwise, false.