Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Sessions not persisting through requests 5.0.0beta1 #1310
I've been playing with passenger 5 beta with a Rails application for a week now and I just noticed that the Rack session variables are not persisting through requests (including cookies) and I don't know why this is happening, I've been reading a lot the documentation you have but It doesn't really cover that scenario, I tried to change the
I thought it was a design issue of my application, however, all my spec files are working properly and it also works if I use
Thanks in advance!
Unfortunately it's not working, I set a value in a Rails controller like this:
# Controller details not necessary def index session[:foo] = "bar" end
And then in another controller context:
# Controller details not necessary def create if session[:foo] == "bar" # ... end end
But it returns:
session[:foo] # => nil
session[:foo] # => "bar"
And it works perfectly fine with other web servers such as
Hi @FooBarWidget here's the whole session on each response, I just updated to 5.0.0.beta2 this morning and the session values that I set manually seem to work, but the devise sessions are not persisting when I'm trying to authenticate, hopefully this will give you enough information for what you need. As additional information Devise sessions were persisting fine in 5.0.0.beta1