AntiforgeryOptions.CookiePath Property

Definition

Caution

This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.Path.

This property is obsolete and will be removed in a future version. The recommended alternative is on Cookie.

The path set on the cookie. If set to null, the "path" attribute on the cookie is set to the current request's PathBase value. If the value of PathBase is null or empty, then the "path" attribute is set to the value of Path.

C#
public Microsoft.AspNetCore.Http.PathString? CookiePath { get; set; }
C#
[System.Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.Path.")]
public Microsoft.AspNetCore.Http.PathString? CookiePath { get; set; }

Property Value

Attributes

Applies to

Product Versions (Obsolete)
ASP.NET Core 1.1 (2.0, 2.1, 2.2)