CookieHandler.Path Property

.NET Framework (current version)

Gets or sets the virtual path for cookies written by the handler.

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

public virtual string Path { get; set; }

Property Value

Type: System.String

The virtual path. Defaults to the root of the ASP.NET application.

Exception Condition

An attempt to set a null or empty value occurs.

This property corresponds to the HttpCookie.Path property.

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

.NET Framework
Available since 4.5
Return to top