Get Session Information
| Function | To get session information including usertype and base64 encoded password |
| Command | CMD_API_GET_SESSION |
| Method | GET or POST |
| Success Returns | url encoded array |
| Failure Returns | error=1 |
| Form values: | |
| Name | Value |
| ip | The IP address of the connected user. Must match the value in the session identified by session_id |
| session_id | Users session ID. Can be obtained via the “session” cookie, or the SESSION_ID token. |
| Array returns | values: |
| Name | Value |
| error | 0 or 1, To determine if it was successful or not |
| password | Base64 encoded password, as stored in the session |
| username | Username of the user in that session |
| usertype | user or reseller or admin, Type of the account the user has. |