Navigation:  thinBasic Modules > CGI >

CGI_StartSession

Previous pageReturn to chapter overviewNext page

 

Description

 

Starts a new CGI session.

 

Syntax

 

n = CGI_StartSession(nSecondsOfValidy)

 

Returns

 

Return a number.

Returns 0 if the function fails, otherwise the session ID.

 

Parameters

 

Name

Type

Optional

Meaning

nSecondsOfValidy

Number

No

Specify the number of seconds before that the session expires, 0 means that session expires immediately.

 

Remarks

 

Restrictions

 

 

See also

 

CGI_GetCurrentSession

 

Examples

 

nSessionID = CGI_StartSession(0)