|
Return to Predefined Objects Page |
|
The SESSION table contains all session variables. It is through the use of this
table that session management is performed. Anything added to this table remains
in the table until the user session expires.
To access values in this table, use the syntax SESSION.variableName
The following example shows how information can be added and retrieved from the
SESSION table.
|
<!--- Set a value into the SESSION table --->
<SASET NAME=SESSION.message VALUE="Hello!">
<!--- Retrieve a value from the SESSION table --->
<SAOUTPUT VALUE=SESSION.message>
|
As with all SteelArrow variables, other tables can be stored with the SESSION table.
This aids in the development of eCommerce solutions that may require shopping cart
type functionality.
The SESSION object has several predefined values, as follows:
The below values were retrieved from your SESSION table.
|
|
SESSION.TIMEOUT |
Session Timeout (minutes) 3 |
SESSION.TIME |
Session Last Access Time 13:43:58 |
SESSION.DATE |
Session Last Access Date 10/7/2024 |
SESSION.UNIQUEID |
Script Unique Identifier 27280N4943877 |
SESSION.USERID |
Session Unique User Id 27280N4943877 |
|
|
The SESSION.TIMEOUT value is the time in minutes that this session will expire. This value
can be changed to reflect the requirements of the web application. The defualt can also be
changed by the administrator using the system configuration utility.
The SESSION.UNIQUEID is created everytime any script is accessed. It is a unique identifier
that will never be repeated. If you are a database developer this value can be used as a
primary key.
|