I have a User
, set up with Devise
.
User can have his own page (with subdomain).
Like: awesomeuser.domain.com
On localhost after sign in I can visit both root path and path with subdomain - and he's signed in.
But on production server when he visits path with subdomain - he gets signed out.
Does anyone know what it can be caused by?
Since it works on local machine - I know it's sessions, but what exactly?
Here's my config/initializers/session_store.rb
:
MyApp::Application.config.session_store :cookie_store, key: '_MyApp_session', domain: :all