Sets the session value.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 13.0.131
Syntax 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