jogorek Posted January 10, 2018 Share Posted January 10, 2018 Hi guys, so I have a WHMCS with tiny configuration.php modification which allow me to have diffrent languages on subdomains, so I have russian language on ru.domain.com, english on www.domain.com (main one) etc... The problem I have is that when user go to diffrent language/subdomain he is logged out on this subdomain. Does anybody know how to share user sessions through subdomains? I thought a simple change on php.ini would help: php_value session.cookie_domain .domain.com But it's not. Any ideas what else could I try? Link to comment Share on other sites More sharing options...
sentq Posted January 10, 2018 Share Posted January 10, 2018 check this https://stackoverflow.com/a/644934 Link to comment Share on other sites More sharing options...
jogorek Posted January 11, 2018 Author Share Posted January 11, 2018 I already saw it, tried everything but it somehow doesnt want work with WHMCS. I tried this in the begining of the configuration.php : ini_set('session.cookie_domain', '.domain.com' ); session_start(); but it actually crash loging (user cant login). I figure out to set this up in php.ini, like this: http://prntscr.com/hys8tp but this doesnt work too... Link to comment Share on other sites More sharing options...
Recommended Posts