Navigation:  thinBasic Modules > CGI >

CGI_GetCurrentSession

Previous pageReturn to chapter overviewNext page

 

Description

 

Retrieves a Session ID that is a string obtained from a 32-bit number produced by starting a new CGI session.

 

Syntax

 

s = CGI_GetCurrentSession() AS STRING

 

Returns

 

Return a string value.

Returns the GUI string for the current session.

 

Parameters

 

 

Remarks

 

A Session ID is created only if a new sessions is started

See CGI_StartSession to see how to start a new session.

 

Restrictions

 

 

See also

 

CGI_GetCurrentGUID, CGI_StartSession

 

Examples

 

Dim SessionID As String = CGI_GetCurrentSession

 

If Len(sSessionID) Then

  Echo("The SESSIONID for the current session is : " + sSessionID)

Else

  Echo("Sorry, the current session hasn't a SESSIONID!")

End If