0

I have a Rails 5 app that uses Devise for managing users and hosted on Heroku.

My site is called www.example.com but I allow my users to set up custom domains so it could be www.andyexample.com as well.

I can successfully login to www.example.com. However, when I login to www.example.com and then navigate to www.andyexample.com I'm not logged in anymore even though it's the same application.

Is there a way to keep me logged in even when I change between domains?

My understanding was that Devise uses cookies but since a cookie is stored in the browser, why does it not keep me logged in?

Not a duplicate to the suggested post since it's outdated and has 1 reply that introduces a fairly complex solution to something that should be easier to achieve.

Cheers,

2

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.