DeleteCookieContext Class

Definition

Context for OnDeleteCookie that allows changes to the cookie prior to being deleted.

C#
public class DeleteCookieContext
Inheritance
DeleteCookieContext

Constructors

Properties

Context

Gets the HttpContext.

CookieName

Gets or sets the cookie name.

CookieOptions

Gets the CookieOptions.

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 deleted. If set to false, cookie deletion is suppressed.

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