AntiforgeryOptions.CookieName AntiforgeryOptions.CookieName AntiforgeryOptions.CookieName 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.

Specifies the name of the cookie that is used by the antiforgery system.

[System.Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.Name.")]
public string CookieName { get; set; }
member this.CookieName : string with get, set
Public Property CookieName As String
Property Value

Remarks

If an explicit name is not provided, the system will automatically generate a unique name that begins with DefaultCookiePrefix.

Applies to