My cURL session is generating a new cookie everytime I run it.
How can I use the same cookie for different scripts?
My settings:
curl_setopt($curl, CURLOPT_COOKIESESSION, false);
curl_setopt($curl, CURLOPT_COOKIEFILE, $cookiefilename);
curl_setopt($curl, CURLOPT_COOKIEJAR, $cookiefilename);
Thanks!
Have you tried using True?
curl_setopt($curl, CURLOPT_COOKIESESSION, true);Have you verified that cookies are being written to $cookiefilename?
Are you trying to ‘re-run’ the script within the duration of the cookie(s)?
You are trying to re-use the cookie(s)?