Compartilhar via


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

public bool HttpOnly { get; set; }
public:
property bool HttpOnly {
    bool get();
    void set(bool value);
}
member HttpOnly : bool with get, set
Public Property HttpOnly As Boolean

Property Value

Type: System.Boolean

true if a cookie is accessible by client-side script; otherwise, false.

See Also

CookieOptions Class
Microsoft.Owin Namespace

Return to top