1

I have a rails app using devise to manage sessions. I want users who login to myapp.com to be able to view beta.myapp.com without having to re-login.

I followed the instructions from this post. Basically adding to config/initializers/session_store.rb:

Rails.application.config.session_store :cookie_store, key: '_myapp_session', domain: :all, tld_length: 2

Cleared my cookies. But it's not working. The app sessions still seem to be completely separate, requiring me to login and logout of both individually.

Any suggestions?

Community
  • 1
  • 1
Jackson Cunningham
  • 4,973
  • 3
  • 30
  • 80

1 Answers1

0

You need to make the changes in both the apps.

Change the session store in both the rails app, and their devise secret keys should be same as well.

amit_saxena
  • 7,450
  • 5
  • 49
  • 64