Syntax
| GetSessionVar([varname$])
| ||||
---|---|---|---|---|---|
Description
| Returns a Variant that previously was stored in the current session variables container.
Session variables are typical temporary named values, which are server-sided stored. Session variables are automatically destroyed when the session ends. Some session variables are pre-defined in CBBS/32 WebServer:
IP, the IP-address of the current active session
StartTime, the date and time of the first connection to this session
LastActivity, the date and time of the latest interaction with the user.
Additionally, you can add more pre-defined session variables.in the CBBS/32 WebServer Configuration dialog, in the Session vars tab.
When parsing html template documents with HtmlParseFile, values of session variables can easily be inserted in the template by adding the #-character before and after varname$., for Example #IP#
Note: when working with custom login and logout scripts, you need to manually clear session variables, using SetSessionVar.
| ||||
See Also
| |||||
Example
|
|