Rails 3.2.8 - Share Devise Sessions Across Subdomains with POW

后端 未结 1 1391
小蘑菇
小蘑菇 2021-01-13 04:58

I am trying to set up a simple subdomain-based blog in rails 3.2.8. Basically it will have sites, users (authenticated through Devise), and memberships to connect users to

相关标签:
1条回答
  • 2021-01-13 05:28

    Make sure you clear your cookies and restart the app.

    Appname::Application.config.session_store :cookie_store, :key => '_appname_session', domain: ".appname.dev"
    

    domain: ".appname.dev" is the correct format for the domain option. The beginning period is important.

    0 讨论(0)
提交回复
热议问题