I have my project set up using Rails 4.2, Ruby 2.2, and Devise 3.5.
I have an app with multiple sudomains and I would like a user's state (logged in/out) to be shared across those subdomains.
I have set my session store up like this:
config.session_store :cookie_store, :key => '_app_name_session', :domain => '.name.app', :tld_length => 2
However this does not seem to be doing anything as when I inspect the session in Chrome, it is called the _app_session
, which is the incorrect session name so this makes me think that rails is ignoring these settings.
How can I setup Devise to work using sessions that will work with all of the different sub domains?
Thanks