Click or drag to resize
CookieHelper.SetValue Method (String, String, String, DateTime, Nullable<Boolean>)
Sets the cookie.

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

Parameters

name
Type: System.String
Cookie name
value
Type: System.String
Cookie value
path
Type: System.String
Cookie virtual path
expires
Type: System.DateTime
Expiration time
httpOnly
Type: System.Nullable<Boolean>
Defines httpOnly flag.
See Also