AppendCookieContext Class

Definition

Context for OnAppendCookie that allows changes to the cookie prior to being appended.

C#
public class AppendCookieContext
Inheritance
AppendCookieContext

Constructors

Properties

Context

Gets the HttpContext.

CookieName

Gets or sets the cookie name.

CookieOptions

Gets the CookieOptions.

CookieValue

Gets or sets the cookie value.

HasConsent

Gets a value that determines if cookie consent was provided.

IsConsentNeeded

Gets a value that determines if cookie consent is required before setting this cookie.

IssueCookie

Gets or sets a value that determines if the cookie can be appended. If set to false, the cookie is not appended.

Applies to

Produk Versi
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0