[Rails] Re: Sharing sessions between subdomains?
softwareengineer 99
softwareengineer99 at yahoo.com
Wed Feb 8 15:08:57 GMT 2006
I spoke too soon as after clearing the cookies it works!
Zsombor, thank you so much for your time and assistance. I owe you one ;)
Frank
softwareengineer 99 <softwareengineer99 at yahoo.com> wrote: 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._______________________________________________
Rails mailing list
Rails at lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails
---------------------------------
Yahoo! Mail - Helps protect you from nasty viruses.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060208/2179653b/attachment-0001.html
More information about the Rails
mailing list