CookieOptions.HttpOnly Property

Gets or sets a value that indicates whether a cookie is accessible by client-side script.

Namespace:  Microsoft.Owin
Assembly:  Microsoft.Owin (in Microsoft.Owin.dll)

Syntax

'Declaration
Public Property HttpOnly As Boolean 
    Get 
    Set
'Usage
Dim instance As CookieOptions 
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 a cookie is accessible by client-side script; otherwise, false.

See Also

Reference

CookieOptions Class

Microsoft.Owin Namespace