AntiforgeryOptions.CookiePath AntiforgeryOptions.CookiePath AntiforgeryOptions.CookiePath Property

Definition

Warning

This API is now obsolete.

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.

[System.Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.Path.")]
public Nullable<Microsoft.AspNetCore.Http.PathString> CookiePath { get; set; }
member this.CookiePath : Nullable<Microsoft.AspNetCore.Http.PathString> with get, set
Public Property CookiePath As Nullable(Of PathString)
Property Value

Applies to