I have a rails application, which is a CMS that uses dynamic subdomains for each site. For some reason, when I deployed to production, the session cookie is not set. I think this leads to "Invalid Authentication Token" errors that occur everywhere.
I have my setup.rb setup so that I can share sessions by subdomain. What could be wrong if the cookie is not set at all?
config.action_controller.session[:domain] = '.domain.com'
config.action_controller.session = {
:session_key => '_app_session',
:secret => '.... nums and chars .....'
}
source
share