Is authentication possible between the PHP section and the Rails section of the site?

The site is currently written in PHP. I want to add a new component by running it in Ruby on Rail and then setting Rails to a subfolder.

If a user enters a part of PHP on a website, can I customize the content for him / her in the Rails section without requiring a second login?

I'm relatively new to Ruby on Rails, so I ask all these noob questions.

+3
source share
1 answer

, cookie .
cookie . , rails.

, php:

<?php $_COOKIE['foo'] = 'bar'; ?>

rails :

method_that_checks_the_user cookies[:foo]
+1

Source: https://habr.com/ru/post/1731358/


All Articles