i've a problem with session on my multi-domain website.
In fact, i've :
and
In the php.ini, i've set : session.cookie_domain = ".website.com"
I check if it correctly change with phpinfo();
and it's ok, i've well the same value for both website (domaine and sub-domain) :
the same session.cookie_domain
, session.save_path
, session.cookie_path
.
session.cookie_lifetime
= 0 and session.cookie_secure
is off
Well, now, when i try some test :
$_SESSION["test"] = "myvalue";
and i display the session_id.Conclusion, the session id is kept, but sessions values are lost.
Any idea ? I have check to change with session_set_cookie_params(0, '/', '.website.com');
on each website. And also try to use the htaccess php_value session.cookie_domain ".website.com"
HELP, THAT MADE ME CRAZY.
After unsuccessfull search, i have re-install apache2 on my Debian. The problem was solved and session values are shared successfully.
I think my apache2 was corrupted by a plugin installation 2 month ago.