Chris Olsen wrote:
> Frederick Cheung wrote:
>> You can't set cookies for a top level domain like .local (in the same
>> way that you can't set a cookie for .com) the domain you set a cookie
>> for must have at least two components (there are a lot of
>> complications etc... see http://my.opera.com/yngve/blog/show.dml/
>> 267415 for example)

In case anyone had the same issue -- I was trying to get cross-subdomain 
cookies, as above. I followed the instructions... set my session_domain 
to ".myapp.local" to get around the issue Fred mentions, added some 
aliases to /etc/hosts, cleared my cookies, tried to log in to my app. 
And I was still getting InvalidAuthenticityToken errors.

Turns out all I needed to do was restart Firefox. No idea why that 
worked, but the InvalidAuthenticityToken errors stopped.

ymmv of course.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to