Stores a variable and its value in the current session container. During an active web session, this variable can be retrieved and updated. When a web session is terminated, all variables are destroyed. The variable names are case-insensitive.
Note: when working with custom login and logout scripts, you need to manually clear session variables, using SetSessionVar, appointing a null value to all relative variables.
Parameter
| Description
| varname$
| The name of the variable in the session container to be created or updated.
| value
| The value assigned to varname$.
|
There are some special session variables that are reserved and pre-defined. These are listed below:
Variable name
| Description
| IP
| Returns the remote-address (direct or via proxy) of the connected user
| StartTime
| The date and time the session was started.
| LastActivity
| The data and time the session was active.
| Connection
| The name of the current database-server connection used. NOTE: Changing this session variable will force the web-server to use that connection for this session only.
| ConnectString
| The native connectionstring that is used to connect with an MS-SQL database server.
| Lang
| Language. Default language setting is "NL". This session variable is used voor automatic translations, using TTW.
|
|