Click or drag to resize
CookieHelperSetValue Method (String, String, String, DateTime, NullableBoolean, String)
Sets the cookie.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 9.0.0
Syntax
C#
public static void SetValue(
	string name,
	string value,
	string path,
	DateTime expires,
	Nullable<bool> httpOnly,
	string domain
)

Parameters

name
Type: SystemString
Cookie name
value
Type: SystemString
Cookie value
path
Type: SystemString
Cookie virtual path
expires
Type: SystemDateTime
Expiration time
httpOnly
Type: SystemNullableBoolean
Defines httpOnly flag.
domain
Type: SystemString
Domain to associate the cookie with.
See Also