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 Quote 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'); Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.