Jump to content

keep login users on subdomains


jogorek

Recommended Posts

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

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

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated