0

We have one main domain and 4 sub domains running different instances and using same remote mysql database server. Some domains using PHP 5.6 and some using 5.5. we want to have our domains sharing the same PHP session, So that we can keep user data across these domains. I saw two methods Storing Sessions in a Database and using memcached. We are using redis on each servers.

Is it possible to set-up a centralised redis server to handle common php session across multiple servers

0

In order to use Redis to handle PHP sessions across multiple servers, you need to install the phpredis PHP extension and configure Redis as PHP session handler in php.ini on each server.

  • The question is a bit more complex than that. OP wants to share not just across multiple servers, but across multiple domains. – ceejayoz Apr 27 '17 at 16:57
  • @ceejayoz Yes, share across subdomains – adminz Apr 27 '17 at 19:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.