When using a subdomain and trying to view anything related to current_user. user is sent to a new session page, the page shows the session is created and gives the option to logout. I can use no subdomain and it works fine.
                +1 
                A: 
                
                
              
            Set it in your environment.rb (or environments/*.rb if you'll use different domains for each environment):
ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS.update( :session_domain => '.domain.com')
                  kev_in
                   2008-11-22 03:56:17
                
              
                
                A: 
                
                
              
            FYI... as of Rails 2.3, this setting has changed. The rails 2.3+ version looks like:
ActionController::Base.session_options[:domain] = '.domain.com'
Just in case anyone else lands here from Google and gets confused like I did.
                  jkrall
                   2010-10-21 10:39:32