CookieHandler.Domain Property

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets the domain used for cookies.

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

public virtual string Domain { get; set; }

Property Value

Type: System.String

The domain used for cookies. The default is null.

Corresponds to the HttpCookie.Domain property.

The property can be initialized by specifying the domain attribute on the <cookieHandler> element in configuration.

.NET Framework
Available since 4.5
Return to top