I am on Windows 7 using WAMP, and I am trying to share the PHPSESSID
across subdomains.
In my code I set: ini_set('session.cookie_domain', '.web.local');
When I go to test.web.local
I get a different PHPSESSID than web.local
I want to be able to share the PHPSESSID
in $_COOKIE
accross the subdomains.
What am I doing wrong?
- Also running Wildcard based subdomains via Acrylic DNS Proxy custom hosts file.
- Another thing, if I
echo phpinfo()
on both domains, thesession.cookie_domain
directive has the same value on both.