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"))

 

 

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