I have a staging and a production environment on my rails 3.1rc6 app which uses subdomains. I\'ve bought and configured different domain names for these environments, because th
The following settings has been working fine for me:
config/environments/staging.rb
AppName::Application.config.session_store :cookie_store, :key => '_sample_app_session' , :domain => '.mystagingdomain.co.uk'
config/environments/production.rb
AppName::Application.config.session_store :cookie_store, :key => '_sample_app_session' , :domain => '.myproductiondomain.com'