[Rails] Re: Sharing sessions between subdomains?

softwareengineer 99 softwareengineer99 at yahoo.com
Wed Feb 8 15:05:39 GMT 2006


Hello Zsombor,
  
  >> You need to set the session domain in your production.rb
  
  I placed the following code in production.rb, development.rb and test.rb
  
  ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS.update(:session_domain => '.domain.com')
  
  and the functional tests snippet in test/test_helper.rb.
  
  Then I restarted the server and logged in at domain.com. Then I went to  blog.domain.com and it's not recognizing session and asking me again  for password.
  
  Did I miss something? 
  
  I highly appreciate your assistance.

  Frank
  P.S. I just added your blog to my reading list ;)

  
		
---------------------------------
Brings words and photos together (easily) with
 PhotoMail  - it's free and works with Yahoo! Mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060208/32fa1660/attachment.html


More information about the Rails mailing list