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 other sub-cookies these will be preserved.
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 with a sub-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
The name of the cookie - subCookieName
- Type: SystemString
The name of the sub-cookie - value
- Type: SystemString
The value to set
Remarks
Examples
const string COOKIE = "MyCookie"; const string SUBCOOKIE = "SubCookie"; SetCookie(COOKIE, SUBCOOKIE, "Cookie & sub-cookie"); Response.Write(Server.HtmlEncode(GetCookie(COOKIE, SUBCOOKIE));
See Also