Archive for April, 2009

  • Setting the session base domain in Rails 2.3 - April 29th, 2009

    Prior to Rails 2.3, you could set the session base domain as follows:
    ActionController::Base.session_options[:session_domain] = ‘.example.com’
    In Rails 2.3, this needs to change to:
    config.action_controller.session[:domain] = ‘.example.com’
    I usually set this in my config/environments/.rb configuration files but it could be set in config/environment.rb if you want it to apply across configurations.
    Background
    This setting will allow for a shared session across [...]