Session Variables
Session variables are name/value pairs whose values persist for the life of a session, and for which Mongoose provides access from the client, middle, and back-end data tiers. Session variables can be used in a variety of ways to pass information between elements of an application on its various tiers.
To construct the name-value pairs using the Event Action Set Name/Value Pairs form, click the button to the left of this field.
The contents of this field must use this syntax for each session variable:
varName = scalarExpr
where:
- varName is the name of the session variable. If the variable does not exist when the event is executed, the system creates the variable when needed.
- scalarExpr is the value to be assigned to that session variable when the event action executes.
When you click Event Actions form, the application "wraps" this content within a SETGLOBVALUES( ) parameter, which yields this final syntax:
to return to theSETGLOBVALUES( varName =
scalarExpr[, ...] )
The application does not prevent you from including a null value for a
variable (such as sessionVar =
) on this form, but doing so generates a
syntax error. To designate a null value for the value of a variable, use a double set of
quotation marks (sessionVar = ""
).