In your config / intializers / session_store.rb change it to
Yourapp::Application.config.session_store :cookie_store, :key => '_yourapp_session', :domain=>:all
The secret sauce is the domain ... When set to all cookies, they will be stored in all subdomains and in the main domain.
source share