I'm trying to pass my session ID across 2 subdomains. The domains are as follows:
I have added the following line to my .htaccess file:
php_value session.cookie_domain .mydomain.com
The strange thing is that if I use:
The sessionid for"mydomain.com" is the same as "secure.mydomain.com". It seems only the "www" version is different.
I've attached my sample testing code below.
Thanks in advance for your help - this is driving me crazy :-)
// There is no cookie set. We will set the cookie
// and return the value of the users session ID
session_set_cookie_params('', '/', '.mydomain.com', 0);
$CookieID = GetCartId();
echo "AnnasCartID: $CookieID<br>";