Returns the session value of variable passed to the function. Before retrieving the session variable value, it has to be stored by using the “Save Into Session variable” option in the Formulas tab.
= SESSION(value)
value |
A session variable whose value is to be found. The variable should be specified as a string (e.g., “var”). |
String. The function can be used in combination with other functions.
Example |
Returns |
= SESSION(“var”) |
The value of session variable “var” |
= SESSION("OrderID") |
The OrderID if it is stored as a session variable. |
= ENCRYPT(SESSION(“CustomerID”)) |
The encrypted version of the CustomerID stored in the session. |
= DECRYPT(SESSION(“MyUsername”)) |
The decrypted version of the session variable “MyUsername”. |