###

alias hbin me

9 December 2016

Sharing Sessions Across Subdomain for Rails

The part you want to watch out for here is that if you set :domain => :all like is recommend in some places, it simply won’t work unless you’re using localhost. :all defaults to a TLD length of 1, which means if you’re testing with Pow (myapp.dev) it won’t work either because that is a TLD of length 2

App.config.session_store ... , :domain => :all, :tld_length => 2



[References]

tags: Rails - Session