title: cURL logout (session_destroy) from multiple subdomains not working
body: <p>I have multiple subdomains like domain1.example.com, domain2.example.com. I have central database for these subdomains; and i create session for each subdomain when i login (through ajax). </p>
  
  <p>Now i want when i logout from any subdomain, then i logout from all the subdomains (session_destroy) where the session has been created. (I have the list of subdomains where session is maintained). Plz help how to logout from multiple subdomains using cURL.</p>
  
  <p>I am using the following cURL code in loop for subdomains.</p>
  
  <pre><code>$url = 'http://' . $a_domain . ".localhost/panels/login?task=logout";
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, $url);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);                
  $output = curl_exec($ch);
  curl_close($ch);
  </code></pre>
  
  <p>Moreover when i directly run the $url in browser, it works and logout from that subdomain, but i want to work it in loop throug cURL. ??</p>
  
  <p>The remote subdomain $URL logout code </p>
  
  <pre><code>public function logout(){
  echo '&lt;br&gt;before destroy &lt;br&gt;'; 
  print_r($_SESSION);
  session_destroy();
  echo'&lt;br&gt;after destroy &lt;br&gt;';
  print_r($_SESSION);
  }
  </code></pre>