{"action":"created","issue":{"url":"https://api.github.com/repos/liip/LiipImagineBundle/issues/557","labels_url":"https://api.github.com/repos/liip/LiipImagineBundle/issues/557/labels{/name}","comments_url":"https://api.github.com/repos/liip/LiipImagineBundle/issues/557/comments","events_url":"https://api.github.com/repos/liip/LiipImagineBundle/issues/557/events","html_url":"https://github.com/liip/LiipImagineBundle/issues/557","id":55225296,"number":557,"title":"Varnish and cookies","user":{"login":"peternijssen","id":688048,"avatar_url":"https://avatars.githubusercontent.com/u/688048?v=3","gravatar_id":"","url":"https://api.github.com/users/peternijssen","html_url":"https://github.com/peternijssen","followers_url":"https://api.github.com/users/peternijssen/followers","following_url":"https://api.github.com/users/peternijssen/following{/other_user}","gists_url":"https://api.github.com/users/peternijssen/gists{/gist_id}","starred_url":"https://api.github.com/users/peternijssen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peternijssen/subscriptions","organizations_url":"https://api.github.com/users/peternijssen/orgs","repos_url":"https://api.github.com/users/peternijssen/repos","events_url":"https://api.github.com/users/peternijssen/events{/privacy}","received_events_url":"https://api.github.com/users/peternijssen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-01-22T23:37:18Z","updated_at":"2015-01-29T19:05:25Z","closed_at":null,"body":"I am not exactly sure if it's due to this bundle, but I think so.\r\n\r\nCurrently I am running a website with lots of images, which are resized by this bundle. Varnish is in front of this website and I am stripping all cookies away from the request and response headers to make sure static files are cached.\r\n\r\nWhat I noticed however is that I am logged out on a regular basis in our system. It seems like I am getting a new session appointed or the old one is invalid.\r\n\r\nThis doesn't occur when all images have been created in the cache directory, but only when the images are created for the first time. I suspect it has something to do with the fact the image is resized on the fly and you basically \"enter\" Symfony instead of returning a static file from the cache.\r\n\r\nIs this a known problem? Or am I searching in the wrong corner?"},"comment":{"url":"https://api.github.com/repos/liip/LiipImagineBundle/issues/comments/72083760","html_url":"https://github.com/liip/LiipImagineBundle/issues/557#issuecomment-72083760","issue_url":"https://api.github.com/repos/liip/LiipImagineBundle/issues/557","id":72083760,"user":{"login":"peternijssen","id":688048,"avatar_url":"https://avatars.githubusercontent.com/u/688048?v=3","gravatar_id":"","url":"https://api.github.com/users/peternijssen","html_url":"https://github.com/peternijssen","followers_url":"https://api.github.com/users/peternijssen/followers","following_url":"https://api.github.com/users/peternijssen/following{/other_user}","gists_url":"https://api.github.com/users/peternijssen/gists{/gist_id}","starred_url":"https://api.github.com/users/peternijssen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peternijssen/subscriptions","organizations_url":"https://api.github.com/users/peternijssen/orgs","repos_url":"https://api.github.com/users/peternijssen/repos","events_url":"https://api.github.com/users/peternijssen/events{/privacy}","received_events_url":"https://api.github.com/users/peternijssen/received_events","type":"User","site_admin":false},"created_at":"2015-01-29T19:05:25Z","updated_at":"2015-01-29T19:05:25Z","body":"Alright. I think I kinda solved the issue. A listener was kicked off which was using the session to get some data. That started a session and thus created this problem. I now added a if ($this->session->isStarted()) around it + I implemented this session listener; http://www.mattfitz.info/notes/466\r\n\r\nNot sure yet if it's completely fixed, but it already seems to go better."}}