title: Cannot retrieve cookie in PHP
body: <p><img src="https://i.stack.imgur.com/uhpOE.jpg" alt="enter image description here"></p>
  
  <p>I have a cookie that I've set on my site called "your-selected-location".  I'm in FF and using firebug I can see that the cookie is set seemingly correctly and does not expire until next year and is stored in the root "/".  However if I run the following code in very top of my PHP file it does not return the cookie value (which I can see in Firebug)</p>
  
  <pre><code>if (isset($_COOKIE[ 'your-selected-location' ]))
      {
          $cookieselectedlocation = $_COOKIE['your-selected-location'];
          echo ("&lt;hr&gt;Your cookie is: $cookieselectedlocation&lt;hr&gt;");
      }
  </code></pre>
  
  <p>I've also tried a direct echo:</p>
  
  <pre><code>echo $_COOKIE[ 'your-selected-location' ];
  </code></pre>
  
  <p>With no luck.  Any thoughts?  Thanks!</p>
  
  <p>Chris</p>
  
  <p><strong>EDIT: Here's where it gets weirder:
  www.site.com/merchant_profile --> Cannot read cookies
  site.com/merchant_profile --> CAN read cookies</strong></p>