Updated question to make it more clear
I understand that you can set the domain of your session_store to share sessions between subdomains like this: Rails.application.config.session_store :cookie_store, :key => '_my_key', :domain => "mydomain.com"
in Rails 3, what does the setting :domain => :all
do? It can't let you share sessions across top-level domains, cookies can't do that. The documentation says it assumes one top level domain. So what happens if multiple domains access your app?
In my app, my users can create personal subdomains of one main domain, but then can also access that subdomain via their own custom domain.
What is the correct session_store domain setting so that I can:
a) share sessions across all domains of my primary domain, eg "mydomain.com"
b) users who access their personal subdomain eg "user1.mydomain.com" via a CNAME custom url like "some.otherdomain.com" can still create separate sessions.
Thanks
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…