System.Web.Configuration.HttpCookiesSection.HttpOnlyCookies Property

Gets or sets a value indicating whether the support for the browser's HttpOnly cookie is enabled.

Syntax

[System.Configuration.ConfigurationProperty("httpOnlyCookies", DefaultValue="False")]
public bool HttpOnlyCookies { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The httpCookies element supports the use of HttpOnly cookies. HttpOnly cookies (cookies with the HttpOnly attribute) were introduced in Internet Explorer 6 to help mitigate the risk of cross-site scripting. The HttpOnly attribute prevents cookies from being accessed through client-side script. Any information contained in an HttpOnly cookie is less likely to be disclosed to a hacker or a malicious Web site. For more information, search MSDN (msdn.microsoft.com) for "HttpOnly."

Requirements

Namespace: System.Web.Configuration
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0