API for aquiring important data for the current session.

Version 1.203


An Admin/Reseller who has control over a User can call this api function to get the username, password and usertype of the currently logged in User by passsing the session ID and IP address to the API funciton. /CMD_API_GET_SESSION method GET or POST must pass: ip= session_id=aSdF1234 Returns: error=1 or error=0&username=bob&password=base64_encoded_pass&usertype=user|reseller|admin Be very careful with this function as it provides sensitive information. It's discouraged to ever show the password on a webpage.

Interested to try DirectAdmin? Get a 30-day Free Trial!