CookieAuthenticationOptions.CookieHttpOnly Property

Determines if the browser should allow the cookie to be accessed by client-side javascript. The default is true, which means the cookie will only be passed to http requests and is not made available to script on the page.

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

Syntax

'Declaration
Public Property CookieHttpOnly As Boolean 
    Get 
    Set
'Usage
Dim instance As CookieAuthenticationOptions 
Dim value As Boolean 

value = instance.CookieHttpOnly

instance.CookieHttpOnly = value
public bool CookieHttpOnly { get; set; }
public:
property bool CookieHttpOnly {
    bool get ();
    void set (bool value);
}
member CookieHttpOnly : bool with get, set
function get CookieHttpOnly () : boolean 
function set CookieHttpOnly (value : boolean)

Property Value

Type: System.Boolean
Returns Boolean.

See Also

Reference

CookieAuthenticationOptions Class

Microsoft.Owin.Security.Cookies Namespace