Content Studio Web Content Management System
Assembly: CS_SiteLib (in CS_SiteLib.dll) Version: 5.7.5016.0 (5.7.5016.0)
If the cookie exists and contains sub-cookies these will be overwritten.
If the cookie exists and was persistent it will be transformed to a non-persistent cookie.
The following example shows how to set an in-memory cookie value and obtain its value with the GetCookie(String, String) method
[This is preliminary documentation and is subject to change.]
Sets the value of a non-persistent HTTP cookie.
Namespace: ContentStudio.Site
Assembly: CS_SiteLib (in CS_SiteLib.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax
Parameters
- cookieName
- Type: SystemString
Name of the cookie - value
- Type: SystemString
The value to set
Remarks
Examples
const string COOKIE = "MyCookie"; SetCookie(COOKIE, "Cookie value"); Response.Write(Server.HtmlEncode(GetCookie(COOKIE));
See Also