I got following problem.
My PHP session is not the same for mysite.com
. Ie, when user logs in to www.mysite.com
, he is not automatically logged in to mysite.com
I've tried using following code without any success:
session_set_cookie_params(0 , '/', '.mysite.com');
... as well as:
... and as well as:
ini_set('session.cookie_domain', (strpos($_SERVER['HTTP_HOST'],'.') !== false) ? $_SERVER['HTTP_HOST'] : '');
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?