Share via


HttpCookie.HttpOnly Property

Definition

Gets or sets the HttpOnly attributes on the cookie. A value of true will make the cookie inaccessible to JavaScript's Document.cookie API.

public bool? HttpOnly { get; set; }
member this.HttpOnly : Nullable<bool> with get, set
Public Property HttpOnly As Nullable(Of Boolean)

Property Value

Applies to