title: cURL - cookies and sessions
body: <p>Im using cURL to log into a website and then store a session cookie.</p>
  
  <p>Is there a way I can access that session cookie from another PHP script (in the same dir etc.) Ive tried:</p>
  
  <pre><code>$ch = curl_init();
  curl_setopt ($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
  curl_setopt($ch, CURLOPT_URL, $url);
  echo $content = curl_exec ($ch);
  curl_close ($ch);
  </code></pre>
  
  <p>But that doesnt seem to work</p>