HideFromScript Property

CookieHandlerElement.HideFromScript Property

.NET Framework (current version)
 

Gets or sets a value that specifies whether the httpOnly property of the cookies written by this handler should be set.

Namespace:   System.IdentityModel.Services
Assembly:  System.IdentityModel.Services (in System.IdentityModel.Services.dll)

[ConfigurationPropertyAttribute("hideFromScript", IsRequired = false, 
	DefaultValue = true)]
public bool HideFromScript { get; set; }

Property Value

Type: System.Boolean

true if the httpOnly property should be set; otherwise, false. The default is true.

Controls whether the "HttpOnly" flag is emitted for any cookies written. Certain Web browsers honor this flag by keeping client-side script from accessing the cookie value.

Represents the hideFromScript attribute of the <cookieHandler> element.

.NET Framework
Available since 4.5
Return to top
Show:
© 2016 Microsoft