The Login_GetInfo() function returns the name of the data source, the user ID and session ID associated with the current session.
Login_GetInfo(data_source, user_ID, session_ID)
• data_source – A returned string containing the data source the current client is logged into.
• user_ID – A returned string containing the current user’s user ID.
• session_ID – A returned long integer containing the session ID assigned to the current login session.
An integer corresponding to one of the following constants:
Constant |
Description |
---|---|
STATUS_SUCCESS |
The login information was successfully retrieved. |
STATUS_NOT_LOGGED_IN |
A user isn’t logged in. |
STATUS_ERROR |
An unknown error occurred. |