Session variables uses

In this post, we will explain what the session variable can be used for.
In stadium we have 3 different types of variables:

  1. Variables as page parameters
  2. Variables used in scripts
  3. Session variables

The session variables can store values across the whole application that can be accessed by all controls, pages, scripts and expression editors. The session variable’s value can be set or changed using a script.

A session variable and its value are stored on the server until the user signs out or the session expires. By default, a Stadium application’s session expires in 60 minutes of in-activity.

Stadium does not limit you to the number of session variables you can create, but best policy is too use as few as possible. Beware of affecting your application’s performance by creating too many variables or storing too large data in them. This could have a negative impact on the server hosting your application. For example, it is not appropriate to store SQL tables or large files in a session variable.

How to create session variable