{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/15359","labels_url":"https://api.github.com/repos/symfony/symfony/issues/15359/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/15359/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/15359/events","html_url":"https://github.com/symfony/symfony/issues/15359","id":97217493,"number":15359,"title":"[FrameworkBundle] Move session files outside the cache","user":{"login":"greg0ire","id":657779,"avatar_url":"https://avatars.githubusercontent.com/u/657779?v=3","gravatar_id":"","url":"https://api.github.com/users/greg0ire","html_url":"https://github.com/greg0ire","followers_url":"https://api.github.com/users/greg0ire/followers","following_url":"https://api.github.com/users/greg0ire/following{/other_user}","gists_url":"https://api.github.com/users/greg0ire/gists{/gist_id}","starred_url":"https://api.github.com/users/greg0ire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greg0ire/subscriptions","organizations_url":"https://api.github.com/users/greg0ire/orgs","repos_url":"https://api.github.com/users/greg0ire/repos","events_url":"https://api.github.com/users/greg0ire/events{/privacy}","received_events_url":"https://api.github.com/users/greg0ire/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/symfony/symfony/labels/Enhancement","name":"Enhancement","color":"02d7e1"},{"url":"https://api.github.com/repos/symfony/symfony/labels/FrameworkBundle","name":"FrameworkBundle","color":"DDDDDD"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-25T10:56:50Z","updated_at":"2015-07-25T17:09:19Z","closed_at":null,"body":"In ea84bb025b4679903d31919c509638930f74318f , the default location for the session files was set to `%kernel.cache_dir%/sessions`. It means that every time the cache is cleared, everyone is logged out. The location is configurable though, so [working around this problem is quite easy](http://vvv.tobiassjosten.net/symfony/keep-symfony2-sessions-through-cache-clear/). Nevertheless, I think the default location should be changed to something else so that one does not have to make this location change on each project. I can make a PR if you can recommend a new default location (`app/data/sessions`? `var/sessions`? )."},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/124862714","html_url":"https://github.com/symfony/symfony/issues/15359#issuecomment-124862714","issue_url":"https://api.github.com/repos/symfony/symfony/issues/15359","id":124862714,"user":{"login":"iltar","id":1754678,"avatar_url":"https://avatars.githubusercontent.com/u/1754678?v=3","gravatar_id":"","url":"https://api.github.com/users/iltar","html_url":"https://github.com/iltar","followers_url":"https://api.github.com/users/iltar/followers","following_url":"https://api.github.com/users/iltar/following{/other_user}","gists_url":"https://api.github.com/users/iltar/gists{/gist_id}","starred_url":"https://api.github.com/users/iltar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iltar/subscriptions","organizations_url":"https://api.github.com/users/iltar/orgs","repos_url":"https://api.github.com/users/iltar/repos","events_url":"https://api.github.com/users/iltar/events{/privacy}","received_events_url":"https://api.github.com/users/iltar/received_events","type":"User","site_admin":false},"created_at":"2015-07-25T17:09:19Z","updated_at":"2015-07-25T17:09:19Z","body":"You could make it configurable in the Kernel and make the default setting in 2.x still use the cache dir as standard."}}