Dela via


Microsoft.AspNetCore.CookiePolicy Namespace

Contains types that are used to control the behavior of cookies.

Classes

AppendCookieContext

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

CookiePolicyMiddleware

Initializes a new instance of CookiePolicyMiddleware.

DeleteCookieContext

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

Enums

HttpOnlyPolicy

Describes the HttpOnly behavior for cookies.

Remarks

For more information about controlling cookies with ASP.NET Core, see Cookie policy middleware.