title: Curl refuses to clear cached session / cookies
body: <p>I am having problems with a PHP page using CURL not clearing its session cookies. Code is as follows:</p>
  
  <pre><code>    $crl = curl_init();
      $timeout = 5;
      curl_setopt ($crl, CURLOPT_COOKIESESSION, 1);
      curl_setopt ($crl, CURLOPT_FRESH_CONNECT, 1);
      curl_setopt ($crl, CURLOPT_URL,$url);
      curl_setopt ($crl, CURLOPT_RETURNTRANSFER, 1);
      curl_setopt ($crl, CURLOPT_FOLLOWLOCATION, 0);
      curl_setopt ($crl, CURLOPT_COOKIE, "");
  
      //curl_setopt($crl, CURLOPT_COOKIEFILE, 'cookies.txt');
      curl_setopt ($crl, CURLOPT_CONNECTTIMEOUT, $timeout);
      $page = curl_exec($crl);
      curl_close($crl);
  </code></pre>
  
  <p>As you can see I've tried several functions to clear the session. I also commented out the cookie file. But still the script retrives the page with the same cookie information it was using earlier, when I had the cookiefile enabled. </p>
  
  <p>Any ideas? Thank you. </p>