Sessions and Passwords

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.
 
commands/passwords.txt · Last modified: 2010/03/01 23:41 by muscardin
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Please visit Automatic Backlinks to start earning free backlinks Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki villa rentals italy