All threads / Use Devise for two different application in separate machines

Ask A Question

Notifications

You’re not receiving notifications from this thread.

Use Devise for two different application in separate machines

ang nickolas asked in Rails
hi,

I am trying to have my devise database be used by two or more separate rails application.

 I have pointed my sub-application to use the main application devise database.
however, when i log in via my main application and then my sub-application.
the sub-application don't seem to automatically log in.

is this because devise is storing the session as cookies and hence the sub-application does not have access to the cookies?. if so, is it advisable to switch all my application to have their session stored in the database instead?



Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 33,665+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.