CookieHandler.Name 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 base name for cookies written by the handler.

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

public virtual string Name { get; set; }

Property Value

Type: System.String

The base name to use for cookies. The default is “FedAuth”.

Exception Condition

An attempt to set a null or empty value occurs.

This property corresponds to the HttpCookie.Name property.

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

.NET Framework
Available since 4.5
Return to top