Navigation:  thinBasic Modules > CGI >

CGI_GetSessionVariable

Previous pageReturn to chapter overviewNext page

 

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

 

© 2004-2008 thinBasic. All rights reserved. Version 1.7.0.0 Web Site: http://www.thinbasic.com