losing session in rails 2.3.2 app using subdomain

Posted by mike in africa on Stack Overflow See other posts from Stack Overflow or by mike in africa
Published on 2009-03-19T20:19:39Z Indexed on 2010/03/13 1:17 UTC
Read the original article Hit count: 283

i have a 2.2.3 app which i upgraded to 2.3.2

it's a multi-site (using subdomain) that creates one top level session for all sites.

this is how i change the domain in production.rb:

ActionController::Base.session_options[:domain] = "xxx.com"

# in rails 2.2.2, this is what i used to do:
# ActionController::Base.session_options[:session_domain] = "xxx.com"

strange things started to happen after i upgraded i can no longer login using restful authentication; it does authenticate me, but as soon as i'm redirected, it would ask me to login again.

as i said, i use restful_authentication and i also use passenger 2.1.2. anyone can help?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about 2.3.2