Click or drag to resize
ContextHelperAdd Method (String, Object, Boolean, Boolean, Boolean, DateTime, NullableBoolean)
Sets the session value.

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

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
Type: SystemNullableBoolean
Defines httpOnly flag.
See Also