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.
Assembly: System.IdentityModel.Services (in System.IdentityModel.Services.dll)
public: [ConfigurationPropertyAttribute("hideFromScript", IsRequired = false, DefaultValue = true)] property bool HideFromScript { bool get(); void set(bool value); }
Property Value
Type: System::Booleantrue 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
Available since 4.5
Show: