CGI_StartSession

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > CGI >

CGI_StartSession

 

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)