{"action":"opened","issue":{"url":"https://api.github.com/repos/guzzle/guzzle/issues/1153","labels_url":"https://api.github.com/repos/guzzle/guzzle/issues/1153/labels{/name}","comments_url":"https://api.github.com/repos/guzzle/guzzle/issues/1153/comments","events_url":"https://api.github.com/repos/guzzle/guzzle/issues/1153/events","html_url":"https://github.com/guzzle/guzzle/issues/1153","id":91883082,"number":1153,"title":"Cookies are not being persisted","user":{"login":"avindra","id":126848,"avatar_url":"https://avatars.githubusercontent.com/u/126848?v=3","gravatar_id":"","url":"https://api.github.com/users/avindra","html_url":"https://github.com/avindra","followers_url":"https://api.github.com/users/avindra/followers","following_url":"https://api.github.com/users/avindra/following{/other_user}","gists_url":"https://api.github.com/users/avindra/gists{/gist_id}","starred_url":"https://api.github.com/users/avindra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avindra/subscriptions","organizations_url":"https://api.github.com/users/avindra/orgs","repos_url":"https://api.github.com/users/avindra/repos","events_url":"https://api.github.com/users/avindra/events{/privacy}","received_events_url":"https://api.github.com/users/avindra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-29T19:07:28Z","updated_at":"2015-06-29T19:07:28Z","closed_at":null,"body":"Hi,\r\n\r\nConsider the following example:\r\n\r\n```php\r\n\t\t$jar = new \\GuzzleHttp\\Cookie\\FileCookieJar(\"/tmp/somecookie\");\r\n\t\t$client = new \\GuzzleHttp\\Client([\r\n\t\t\t\"base_uri\" => \"http://api.example.com/v1\",\r\n\t\t\t\"cookies\"=> $this->jar\r\n\t\t]);\r\n```\r\n\r\nI would expect the file to have the cookie data saved, but upon shutting down the script / page, nothing is saved and the file ```/tmp/somecookie``` just has:\r\n\r\n```javascript\r\n    []\r\n```"}}