PHP, Cookies and www…oh my!

It always amazes me how many little “gotchas” there are in web design. ┬áHere’s the sitch:

  1. Set a cookie using PHP at…set the cookie for the root: /
  2. Can read the cookie at
  3. Can NOT read the cookie at
  4. CAN read the cookie at (without the www)

After some digging found this article which shares how to set cookies so they can be accessed at www. or .