GetSession()

Returns session credentials for the active API session.

Syntax

Public Function GetSession() As Variant

Return value

ValueDescription
 array()If there is a current and valid session, the return value is an array containing the session handle, user ID, session ID, and session password, in elements 0, 1, 2, and 3 of the array, respectively.
 NULLIf no current session exists.

Example

Example usage:
Dim x as Variant
x = a1010data.GetSession
If IsArray(x) then
  ttsid = x(0)
  uid = x(1)
  sid = x(2)
  epswd = x(3)
End If