Session Variables

Use this field to specify session variable definitions as name-value pairs. For multiple variables, include them as a comma-separated list.

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 OK to return to the Event Actions form, the system "wraps" this content within a SETGLOBVALUES( ) parameter, which yields this final syntax:

SETGLOBVALUES( varName = scalarExpr[, ...] )

Note:  If scalarExpr is a literal value, the system automatically encloses it in double quotation marks when returning it to the Event Actions form. If scalarExpr is an expression, the system does not enclose it in quotation marks.

The system 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 = "").