Saturday October 21, 2017

       
      SteelArrow Basics
      SteelArrow Tags
  SteelArrow Functions
  SteelArrow Objects
  Advanced Topics
  WAS Overview
   
   
       
      Overview
  Code Samples
  Site Search
   
   
   


Get SteelArrow!     
  SESSION Table    
 
 
 
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
19:10:09
SESSION.DATE Session Last Access Date
10/21/2017
SESSION.UNIQUEID Script Unique Identifier
20293j6900930
SESSION.USERID Session Unique User Id
20293j6900930
 

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.






Copyright © 1998-2004 Tomahawk Technologies Inc.
Privacy Policy