[Rails] Re: Sharing sessions between subdomains?

softwareengineer 99 softwareengineer99 at yahoo.com
Wed Feb 8 13:13:55 GMT 2006


Thanks Alex for your reply.
  
  Should the cookies be set in application.rb? I tried using
  cookies[:domain]='domain.com' but got an "undefined variable" error?
  
  Where should this setting for cookies  be set if I want it to be applied on a application wide level?
  
  I also tried my controller file but to no avail?
  
  Then I placed the cookie settings in environment.rb. I don't get an error but the session isn't recognized on the subdomain?
  
  I appreciate your assistance very much.
  
  Thanks
  Frank
  
  
Alex Young <alex at blackkettle.org> wrote:

I believe the question was 'how'...  The answer is here:

http://api.rubyonrails.com/classes/ActionController/Cookies.html

-- 
Alex
_______________________________________________
Rails mailing list
Rails at lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails


		
---------------------------------
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/4251a150/attachment.html


More information about the Rails mailing list