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?
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.
Source: https://habr.com/ru/post/1718527/More articles:Dynamically resize input - jqueryWhy does my antivirus program not detect this malicious behavior? - forkHow to put a div in the center of another div? - htmlКак сгенерировать файлы pdb для параллельных сборок? - visual-c++R: update the graph of [xy] lims with the addition of new dots () or lines ()? - rЗачем загружать PHP-расширение при создании экземпляра класса? - phpC ++ considers that "<<" is not a member of the class, but it is c ++Fully JavaScript Web Stack - Middleware, Webserver, DB Suggestions? - javascriptTransferring data to memory from PHP to a .Net program - phpWCF - socket connection is not closed using WS compression with net.tcp binding - wcfAll Articles