Export (0) Print
Expand All
Expand Minimize

HttpCookiesSection Class [IIS 7 and higher]

IIS 7.0

Configures properties for cookies used by a Web application.

class HttpCookiesSection : ConfigurationSection

The following table lists the methods exposed by the HttpCookiesSection class.

Name

Description

GetAllowDefinition

(Inherited from ConfigurationSection.)

GetAllowLocation

(Inherited from ConfigurationSection.)

RevertToParent

(Inherited from ConfigurationSection.)

SetAllowDefinition

(Inherited from ConfigurationSection.)

SetAllowLocation

(Inherited from ConfigurationSection.)

The following table lists the properties exposed by the HttpCookiesSection class.

Name

Description

Domain

An optional read/write string value that sets the cookie domain name.

HttpOnlyCookies

A read/write boolean value. true if output of the HttpCookiesSectionHttpOnlyCookies()()()() property in Internet Explorer 6 SP1 or later is enabled; otherwise, false. The default is false.

This property can help mitigate cross-site scripting threats that result in stolen cookies. When a cookie that has HttpOnlyCookies set to true is received by a compliant browser, it is inaccessible to client-side script. Support for this type of cookie was added in Internet Explorer 6 SP1. For more information about possible attacks and how HttpOnlyCookies can help mitigate them, see Mitigating Cross-Site Scripting with HTTP-Only Cookies.

Location

(Inherited from ConfigurationSection.) A key property.

Path

(Inherited from ConfigurationSection.) A key property.

RequireSSL

An optional read/write boolean value. true if Secure Sockets Layer (SSL) communication is required; otherwise, false. The default is false.

NoteNote:
This setting is overridden by any other feature that exposes the RequireSSL property.

SectionInformation

(Inherited from ConfigurationSection.)

This class contains no subclasses.

Type

Description

Client

Requires IIS 7 on Windows Vista.

Server

Requires IIS 7 on Windows Server 2008.

Product

IIS 7

MOF file

WebAdministration.mof

Community Additions

ADD
Show:
© 2014 Microsoft