{"action":"opened","issue":{"url":"https://api.github.com/repos/phusion/passenger/issues/1349","labels_url":"https://api.github.com/repos/phusion/passenger/issues/1349/labels{/name}","comments_url":"https://api.github.com/repos/phusion/passenger/issues/1349/comments","events_url":"https://api.github.com/repos/phusion/passenger/issues/1349/events","html_url":"https://github.com/phusion/passenger/issues/1349","id":54235021,"number":1349,"title":"Session being emptied on POST requests in 5.0.0-beta2","user":{"login":"peterc","id":118,"avatar_url":"https://avatars.githubusercontent.com/u/118?v=3","gravatar_id":"","url":"https://api.github.com/users/peterc","html_url":"https://github.com/peterc","followers_url":"https://api.github.com/users/peterc/followers","following_url":"https://api.github.com/users/peterc/following{/other_user}","gists_url":"https://api.github.com/users/peterc/gists{/gist_id}","starred_url":"https://api.github.com/users/peterc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterc/subscriptions","organizations_url":"https://api.github.com/users/peterc/orgs","repos_url":"https://api.github.com/users/peterc/repos","events_url":"https://api.github.com/users/peterc/events{/privacy}","received_events_url":"https://api.github.com/users/peterc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-13T19:17:32Z","updated_at":"2015-01-13T19:17:32Z","closed_at":null,"body":"I should start by noting I'm aware of #1310 and the #1296 Set-Cookie bugs from beta 1 - this appears to be something different.\r\n\r\nOn 5.0.0-beta2 in standalone mode, any POST request is causing the existing session cookie's contents to be wiped back to basics (with a new session ID as well). It's not a CSRF issue as it's the same with protect_from_forgery off (and the auth tokens are valid anyway).\r\n\r\nData is retained correctly between multiple GET requests, but as soon as a POST request (even one that does nothing to the session itself in the controller code) occurs, a new empty session is returned. This does not occur with WEBrick or Passenger 4.0.57 which I have now downgraded to."}}