Skip authentication between php application and Ruby on Rails

I have a simple Ruby on rails application that I want to integrate with my existing php website. I want users authenticated with php applications to have access to my Ruby on Rails application (it should appear to the user as the same website in the same domain, although it may be a different subdomain if I chose to ) What is the best way to do this?

Thanks for the help,

Li

+3
source share
2 answers

- - current_user_id:777. Rails PHP-. .

- memcached .

: ( ).

:

php- memcached

Usind memcache

+3

- cookie. PHP cookie , RoR .

, cookie , cookie , cookie .

, , . , . , , , cookie.

+2

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


All Articles