I have an app set up with a main domain and multiple subdomains. I have devise
up and working on the main domain, but when I enter subdomain.domain.com
whatever session is currently on the domain is not recognized. I have seen and tried the answers found in SO posts (also this one) and blogs alike, but nothing seems to be working.
I am working with my config/initializers/session_store.rb
file and have tried:
Bdc::Application.config.session_store :cookie_store, key: '_bdc_session', domain: lvh.me, tld_length: 2
I have tried the following permutations as well:
domain: :all
tld_length: '1'
- No
tld_length
listed
None of these have worked. I am using Rails 4.2.5 and devise 4.0. Can anyone help me get to the point where I can have the same session persist from domain.com
to subdomain1.domain.com
, subdomain2.domain.com
, etc.?