On 06/01/2014 10:51 PM, dimas yoga pratama wrote:
Hi All,

I'm doing an experiment on using Cloudstack API.
 From what I read here
http://cloudstack.apache.org/docs/api/apidocs-4.3/user/login.html when the
login succeeds,it will generate cookie JSESSIONID.
My question is, when I create login page, and succsfull login will redirect
to another page, do I have to pass JSESSIONID to another page like
SESSIONKEY?


Both have to be passed, but they are different things.
E.g., the SESSIONID (a cookie) is not handled like a cloudstack API parameter such as the sessionkey (returned by the ACS login API call).

See for instance CloudMonkey;


https://git-wip-us.apache.org/repos/asf?p=cloudstack-cloudmonkey.git;a=blob;f=cloudmonkey/requester.py

for a python example of CloudStack authentication using username and password and go from there.

/Ove


--
Ove Everlid
System Administrator / Architect / SDN- & Automation- & Linux-hacker
Mobile: +46706668199 (dedicated work mobile)
Country: Sweden, timezone; Middle Europan Time (MET or GMT+1)

Reply via email to