Share session data between sites?

I am working on multisite and I would like to share session data between two or more sites. I have a session id, but what is the best way to get session data from a cookie store? Or is it better to enable ActiveRecord session storage and use the find_by_session_id method to retrieve session data? Using this path - I need to configure one site as a SessionStore provider, and others will use a second database connection to retrieve session data. What is the best way to do this?

+3
source share
1 answer

AFAIK, you cannot share cookies between different sites due to security problems. If I used memcached to share data depending on the user ID in my database.

+2
source

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


All Articles