Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7603369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T23:38:20+00:00 2026-05-30T23:38:20+00:00

Currently, we have multiple CakePHP instances on different domains sharing the same MySQL database.

  • 0

Currently, we have multiple CakePHP instances on different domains sharing the same MySQL database. All instances are managed by a deployment script. We have added a Ruby on Rails app to build out some api’s and other things that are awkward to do in Ruby on Rails.

Ideally, I would like to use Devise for authentication on the Rails side. Would it be possible to share te same table for authentication in CakePHP and Rails? Devise seems to work quite differently than CakePHP Auth. Alternatively, if I could pass all authentication work to the Rails app, and somehow share the session with the CakePHP apps, that would work great too. Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T23:38:21+00:00Added an answer on May 30, 2026 at 11:38 pm

    I would advise against using 2 authentication libraries on the same database table.

    Idea 1

    Use one of them to create a service that you can interact with from one or either app, perhaps over HTTP.

    Idea 2

    “Alternatively, if I could pass all authentication work to the Rails app, and somehow share the session with the CakePHP apps, that would work great too.”

    Yes, that would work if you’re willing to dive into the guts of Devise or Cake. Along the same lines, you could set a non-session, encrypted cookie in one app and read it in the other one, assuming you’re on the same domain.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have multiple tables in my database which consist of the same 'basic
I have multiple lines of data all sharing the same Company id. Is there
I currently have an iPhone application with a tabbar and multiple viewcontrollers. All the
I currently have a solution with multiple projects that mostly use the same classes.
It is the following situation: I currently have multiple Java projects in Eclipse. All
Currently I have to make multiple GETs to receive all the information which I
I currently have an ASP.net 2.0 site with multiple ASP.Net 1.1 sites running as
If you install multiple versions of python (I currently have the default 2.5, installed
I'm having an issue with multiple markers on google maps - I currently have
I'm currently managing multiple models from a single SITE MANAGER page. I have the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.