CGI_GetSessionVariable

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > CGI >

CGI_GetSessionVariable

 

Description

 

Retrieves the value of specified session variable.

 

Syntax

 

s = CGI_GetSessionVariable(sSessionVarName)

 

Returns

 

Return a string value.

The value of the session variable.

 

Parameters

 

Name

Type

Optional

Meaning

sSessionVarName

String

No

The name of session variable to retrieve the value from.

 

Remarks

 

 

Restrictions

 

 

See also

 

CGI_SetSessionVariable

 

Examples

 

Dim sSessionVarName As String

 

sSessionVarName = CGI_GetSessionVariable("Confidential")

If Len(sSessionVarName) Then

  echo("The value of Confidential is : " + sSessionVarName)

Else

  echo("Sorry, the session var Confidential was not found!")

End If