Hi,
I'm trying to set a cookie in one domain and access it from another. Is this possible?
Here's what I'm doing in my app:
In a controller, the test action is accessed via this url:
def test
cookies[:foo] = {
:value => 'something',
:domain => 'myapp.heroku.com'
}
end
In same controller, the test2 action is accessed via this url:
http://myapp.heroku.com/account/test2
def test2
puts "foo=#{cookies[:foo]}"
end
but the value of cookies[:foo] is always blank. Is it possible to access the cookie from the heroku.com domain. I thought setting the :domain option would allow this.
Thanks.