Click or drag to resize
ContextHelperAdd Method
Sets the session value.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 10.0.0
Syntax
C#
public static void Add(
	string key,
	Object value,
	bool request,
	bool session,
	bool cookie,
	DateTime cookieExpires,
	Nullable<bool> cookieHttpOnly = null
)

Parameters

key
Type: SystemString
Item key
value
Type: SystemObject
Value
request
Type: SystemBoolean
Use request storage
session
Type: SystemBoolean
Use session storage
cookie
Type: SystemBoolean
Use cookies
cookieExpires
Type: SystemDateTime
Time when the cookie expires
cookieHttpOnly (Optional)
Type: SystemNullableBoolean
Defines httpOnly flag.
See Also