Hi!
I got following problem.
My PHP session is not the same for
mysite.com and
www.mysite.com. Ie, when user logs in to
www.mysite.com, he is not automatically logged in to
mysite.com and vice-versa.
I've tried using following code without any success:
session_set_cookie_params(0 , '/', '.mysite.com');
session_start();
... as well as:
ini_set('session.cookie_domain', '.mysite.com');
session_start();
... and as well as:
ini_set('session.cookie_domain', (strpos($_SERVER['HTTP_HOST'],'.') !== false) ? $_SERVER['HTTP_HOST'] : '');
session_start();
So, after trying to convince my host company to deal with this in
php.ini, I am left without options known to me.
How do I deal with this?