title: Guzzle cookies handling
body: <p>I'm building a client app based on Guzzle. I'm getting stucked with cookie handling. I'm trying to implement it using <a href="http://guzzlephp.org/guide/plugins.html#cookie-plugin" rel="noreferrer">Cookie plugin</a> but I cannot get it to work. My client application is standard web application and it looks like it's working as long as I'm using the same guzzle object, but across requests it doesn't send the right cookies. I'm using <code>FileCookieJar</code> for storing cookies. How can I keep cookies across multiple guzzle objects?</p>
  
  <pre><code>// first request with login works fine
  $cookiePlugin = new CookiePlugin(new FileCookieJar('/tmp/cookie-file'));
  $client-&gt;addSubscriber($cookiePlugin);
  
  $client-&gt;post('/login');
  
  $client-&gt;get('/test/123.php?a=b');
  
  
  // second request where I expect it working, but it's not...
  $cookiePlugin = new CookiePlugin(new FileCookieJar('/tmp/cookie-file'));
  $client-&gt;addSubscriber($cookiePlugin);
  
  $client-&gt;get('/another-test/456');
  </code></pre>