Element Details: Set+Session+Variables

Available in: Logi Info Source code name: SetSessionVariables

Sets web server session variables. Values for session variables belong to each user, and last as long as the user's session.

Add a SessionParams element below this element to set any number of session variables.

Reference session variables with Session tokens. For example: @Session.MyVariable~

The session variables are set before the report is built.

A SessionParam can be a VBScript formula by entering an equals sign ("=") in the first position. For example if you want to convert the a request variable called Name to upper case, you could create a new SessionParam called UpperName. Then enter the value as:


Click attribute Name to drill down for more information.

NamePossible ValuesDescription
An expression that evaluates to a value of True or False. Expressions should be in JavaScript (recommended) or VBScript syntax. For .NET versions, the scripting language can be set in the _settings.lgx General element. For Java versions, the scripting language is always JavaScript. Typically, you would compare values using a token, such as "@Data.value~ < 0" or "@Session.ShowCol1~=='true'". Elements are removed when the Condition evaluates to False. Use quotes when working with strings: "@Data.myColumn~" == "SomeValue" If your data token may have a double quote inside of it, you should use single quotes: '@Data.myColumn~' == 'SomeValue' String valued data tokens with single and double quotes inside are not supported by the condition attribute.
The ID attribute is a pervasive attribute that uniquely identifies an element within a definition file. The ID needs to be a unique value within the definition.
When True, the value of the session variable is set the first time, and will remain the same throughout the session.


Click element to drill down for more information.

Etl Job
If ETL Error
If File Exists
If Folder Exists
Loop.Data Layer Rows
Mobile Report


Click element to drill down for more information.

Session Parameters

 Back to top