Navigation:  thinBasic Modules > CGI >

CGI_SetSessionVariable

Previous pageReturn to chapter overviewNext page

 

Description

 

Set the value of specified session variable.

 

Syntax

 

s = CGI_SetSessionVariable(sSessionVarName, sVarValue)

 

Returns

 

Return a string.

The new value of the session variable.

 

Parameters

 

Name

Type

Optional

Meaning

sSessionVarName

String

No

The name of session variable to set the value

sVarValue

String

No

The value to set

 

Remarks

 

If the specified session variable does not exist it will be created.

 

Restrictions

 

 

See also

 

CGI_GetSessionVariable

 

Examples

 

CGI_SetSessionVariable("Confidential", "Secret")

echo("Value of Confidential is : " + CGI_GetSessionVariable("Confidential"))