1

I am trying to add a Rails application as a subdirectory of a PHP Zend Framework application. I have configured Apache to use the PHP app as the default and any requests to /myrailsapp go through the Rails app. Now the only problem is sharing sessions. I understand that I need to start storing the session data in the database so both applications have access to the same session information.

So how do I configure these things in Zend Framework and Rails using Devise so the logged in user can transition seemlessly between the apps?

Andrew
  • 227,796
  • 193
  • 515
  • 708
  • This might sound super stupid but, do you mean have them as sub-domain , I mean, they share the same domain, don't they? – Keval Domadia Aug 30 '12 at 06:24
  • No, not subdomain. I really meant subdirectory. – Andrew Aug 30 '12 at 13:25
  • Also, I think there would be another issue with trying to share sessions across subdomains if that were the case. – Andrew Aug 30 '12 at 15:54
  • exactly my point. I have had done a workaround in one of my "currently LIVE" project. It was between CI and ZF. Here, the link : http://stackoverflow.com/questions/11839812/cross-framework-authentication-zend-codeigniter I guess, you might have to resort to something similar. – Keval Domadia Aug 30 '12 at 16:26

0 Answers0