ICookieManager Interface¶
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.
- Namespace
Microsoft.AspNetCore.Authentication.Cookies
- Assemblies
- Microsoft.AspNetCore.Authentication.Cookies
Syntax¶
public interface ICookieManager
-
interface
Microsoft.AspNetCore.Authentication.Cookies.
ICookieManager
Methods¶
-
AppendResponseCookie
(Microsoft.AspNetCore.Http.HttpContext, System.String, System.String, Microsoft.AspNetCore.Http.CookieOptions)¶ Append the given cookie to the response.
void AppendResponseCookie(HttpContext context, string key, string value, CookieOptions options)
-
DeleteCookie
(Microsoft.AspNetCore.Http.HttpContext, System.String, Microsoft.AspNetCore.Http.CookieOptions)¶ Append a delete cookie to the response.
void DeleteCookie(HttpContext context, string key, CookieOptions options)
-
GetRequestCookie
(Microsoft.AspNetCore.Http.HttpContext, System.String)¶ Retrieve a cookie of the given name from the request.
Return type: System.String string GetRequestCookie(HttpContext context, string key)
-