Syntax
| SetSessionVar varname$, value
| ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description
| 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.
There are some special session variables that are reserved and pre-defined. These are listed below:
| ||||||||||||||||||||
See Also
| |||||||||||||||||||||
Example
| Sub Main
Dim PageNum As Variant
PageNum = HtmGetField("pagenum")
If Len(PageNum) > 0 Then
SetSessionVar "Pagenum", PageNum
Else
PageNum = GetSessionVar("Pagenum")
End If
MacroRun "showpage.ccl", PageNum
End Sub
|