Session key system for API logins in the skins

Version 1.213

Feature
Finished

Ability for skin scripting to login to da without knowing the password. It's essentially the same as the sessions based system, except it will work for the localhost ip (127.0.0.1). The key will be passes through the env in skins as: SESSION_KEY the session ID is also now passed through the env: SESSION_ID The key should be passed as a cookie along with the token session=<SESSION_ID>; key=<SESSION_KEY> eg header in php (communication class): $query .= "Cookie: session=".getenv("SESSION_ID")."; key=".getenv("SESSION_KEY")."rn"; http://www.directadmin.com/forum/showthread.php?s=&postid=16773#post16773

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