On Jun 24, 7:10 am, Unni
<unni.tall...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> My rails server runs on localhost. I want to set a cookie for the
> domain ".myapp.com". How do I do this?
You can only set the domain to a parent of the website serving the
request (so if the browser accesses the website as foo.bar.com then
you can set a cookie for foo.bar.com or bar.com). Apart from that I''ve
set cookies in exactly the way you show.
Fred>
> (i tried cookies[''xyz] = {:value => ''abc''
,:domain => ''.myapp.com''} .
> It doesnt work. No cookie is being set when i specify domain like
> that.
>
> thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---