Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
interface Microsoft.​AspNetCore.​Authentication.​Cookies.​ICookieManager
Assembly: Microsoft.AspNetCore.Authentication.Cookies
This is used by the CookieAuthenticationMiddleware to process request and response cookies. It is abstracted from the normal cookie APIs to allow for complex operations like chunking.
Methods
string
GetRequestCookie​(Http.​HttpContext context,
string key)
Retrieve a cookie of the given name from the request.
void
AppendResponseCookie​(Http.​HttpContext context,
string key,
string value,
Http.​CookieOptions options)
Append the given cookie to the response.
void
DeleteCookie​(Http.​HttpContext context,
string key,
Http.​CookieOptions options)
Append a delete cookie to the response.