Appearance
AddCookie Method
Definition
- Namespace:
JASE.Extensions - Assembly:
JASE.Web.dll
void AddCookie(HttpContext context, string key, string value, CookieOptions options = null, CookieManager cookieManager = null)
csharp
void AddCookie(HttpContext context, string key, string value, CookieOptions options = null, CookieManager cookieManager = null)Appends a response cookie, splitting into chunks when the value exceeds ChunkSize.
Parameters
| Name | Description |
|---|---|
context | The current HTTP context. |
cookieManager | Optional CookieManager instance; when omitted, a default manager is used. |
key | Cookie name. |
options | Cookie options; when null, a new CookieOptions instance is used. |
value | Cookie value. |