I set the cookie store in the domain =>: everything, as I could find in the documentation, and it seems to work, because creating authentication works across multiple domains.
MyApp::Application.config.session_store :cookie_store, :key => '_MyApp.com_session', :domain => :all
However, when I try to write to a cookie, it always writes a subdomain ... I do not understand:

I am writing a cookie in the simplest way:
cookies.permanent[:remember_locale] = locale
But no matter what it will not install for the top-level domain, while the one that fell with help seems to handle this without any problems :(
Alex
ps: I am using rails 3.0.3
source
share