title: Use Cookies in PHP soap calls
body: <p>I need to use cookies in my PHP calls, currently i am using the below request:</p>
  
  <pre><code>$publish_Data ='&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;
    &lt;soap:Body&gt;
      &lt;publishData xmlns="http://www.birst.com/"&gt;
        &lt;token&gt;'.$login_token.'&lt;/token&gt;
        &lt;spaceID&gt;'.$space_id.'&lt;/spaceID&gt;
        &lt;date&gt;'.$date.'&lt;/date&gt;
      &lt;/publishData&gt;
    &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;';
  
  
  $location_URL = "https://app2104.bws.birst.com/CommandWebService.asmx?wsdl";
  $action_URL = "http://www.birst.com/publishData";
  
  
  $client = new SoapClient(null, array(
  'location' =&gt; $location_URL,
  'uri'      =&gt; "",
  'trace'    =&gt; 1,
  ));
  
  
  try{
  $publish_data_response = $client-&gt;__doRequest($publish_Data,$location_URL,$action_URL,1);
  //Get response from here
  //print_r($publish_data_response);
  }catch (SoapFault $exception){
  var_dump(get_class($exception));
  var_dump($exception);
  }
  </code></pre>
  
  <p>I need somehow to enable and use cookies in order in next calls that will follow.
  i tried using</p>
  
  <pre><code>sessions_start()
  </code></pre>
  
  <p>but it didn't help - In Java, something called session_maintain_property is used which allows for the program to use cookies, how do i do the same in PHP? </p>