Situation:
- I'm trying run an https store (xcart) under one domain secure.example.com and I want to have access to a cookie it sets in http www.example.com
- I'm running PHP on Apache (MAMP), testing in Firefox with Firecookie
- The existing code sets cookies to
.secure.example.com
. I'm not sure if this is xcart related, butsetcookie
is actually called usingsecure.example.com
. I'm not sure why the ".
" is appended.
Problems:
When I try to use
setcookie
in https to use the domain.example.com
or justexample.com
, no cookie is created, whether I'm running the store under http or https. The testing code I'm using is:setcookie('three', 'two', 0, "/", ".example.com");
If I set the cookie to secure.example.com
or .secure.example.com
it does show up.
Is there a reason the cookie isn't showing up?