OK, so I've read that it is possible to use session variables across multiple sub-domains and domains by placing the following in the .htaccess file on each of the prospective domains:
where domain_name.com is the domain where the session was initiated.
I know this works for sub-domains, because I have used it, but my question is:
Is there a way to make it work across multiple domains on the same server?
My test was this:
domainA.com/index (with .htaccess as above)
<?php session_start(); $_SESSION['aff']='TestName'; ?> <a href="http://domainB.com" target="_blank">Test cross over</a>
Then on domainB.com/index (with .htaccess as above)
<?php session_start(); $passed=$_SESSION['aff'] ; print " passed aff is : *".$passed."*"; ?>
passed aff is **
if it was working it would have TestName between the **
So, does anyone know if this is possible to accomplish, or maybe if I am doing something wrong?
Thanks in advance for any help you could give me.