Session variables
are items of data that get carried from one page to another on the
server. An example is a user's login ID, if you have chosen to generate
your site with security of any kind. By default, the login IDs of
users that log into your site are carried in session variables.
This ensures that your site provides specific users the right level
of security, no matter what page or function they are on. You can
add session variables of your own to a site. A typical case for
such a requirement would be if you needed to carry a user's company
ID and need to use it in various pages. In a zeroCode-generated
site, session variables can only be the primary keys of tables defined
in the schema. If you need a lot of variables that transcend multiple
pages, you could define a temporary table in the schema (and the
database) and carry its ID everywhere.
We suggest that you minimize the use of such variables,
so as to increase the throughput of your site.
One important note: create a given session variable before
creating a UDM that would use it. You cannot add a new session
variable to an existing site.