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

public bool HttpOnly {
    [CompilerGeneratedAttribute]
    get;
    [CompilerGeneratedAttribute]
    set;
}
public:
property bool HttpOnly {
    [CompilerGeneratedAttribute]
    bool get();
    [CompilerGeneratedAttribute]
    void set(bool value);
}
member HttpOnly : bool with get, set
Public Property HttpOnly As 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.

See Also

CookieHeaderValue Class
System.Net.Http.Headers Namespace

Return to top