nvseal Posted August 14, 2009 Share Posted August 14, 2009 Hi, I have a situation which I need to perform a call to another server and get the session ID back to be used in my script. I have been looking into how to do this with CURL but am not having much luck finding out how. Can anyone tell me how to do this? Thanks Link to comment https://forums.phpfreaks.com/topic/170272-getting-session-id-from-curl-call/ Share on other sites More sharing options...
JonnoTheDev Posted August 14, 2009 Share Posted August 14, 2009 The sessionId should be stored in the file you specify for cookies in this case /tmp/cookies.txt curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cookies.txt'); curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt'); Link to comment https://forums.phpfreaks.com/topic/170272-getting-session-id-from-curl-call/#findComment-898206 Share on other sites More sharing options...
nvseal Posted August 14, 2009 Author Share Posted August 14, 2009 Thanks Link to comment https://forums.phpfreaks.com/topic/170272-getting-session-id-from-curl-call/#findComment-898296 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.