IResponseCookies Interface¶
A wrapper for the response Set-Cookie header.
- Namespace
Microsoft.AspNetCore.Http
- Assemblies
- Microsoft.AspNetCore.Http.Features
Methods¶
-
Append
(System.String, System.String)¶ Add a new cookie and value.
Arguments: - key (System.String) – Name of the new cookie.
- value (System.String) – Value of the new cookie.
void Append(string key, string value)
-
Append
(System.String, System.String, Microsoft.AspNetCore.Http.CookieOptions) Add a new cookie.
Arguments: - key (System.String) – Name of the new cookie.
- value (System.String) – Value of the new cookie.
- options (Microsoft.AspNetCore.Http.CookieOptions) –
Microsoft.AspNetCore.Http.CookieOptions
included in the new cookie setting.
void Append(string key, string value, CookieOptions options)
-
Delete
(System.String)¶ Sets an expired cookie.
Arguments: key (System.String) – Name of the cookie to expire. void Delete(string key)
-
Delete
(System.String, Microsoft.AspNetCore.Http.CookieOptions) Sets an expired cookie.
Arguments: - key (System.String) – Name of the cookie to expire.
- options (Microsoft.AspNetCore.Http.CookieOptions) –
Microsoft.AspNetCore.Http.CookieOptions
used to discriminate the particular cookie to expire. TheMicrosoft.AspNetCore.Http.CookieOptions.Domain
andMicrosoft.AspNetCore.Http.CookieOptions.Path
values are especially important.
void Delete(string key, CookieOptions options)
-