title: php setcookie, domain not properly limited in chrome but is in firefox
body: <p>I'm setting a cookie in php:</p>
  
  <pre><code> setcookie('testcookie[test_id]', "testvalue", (time()+(60*60*24*31)), "/", ".".$_SERVER['SERVER_NAME'],"1");
  </code></pre>
  
  <p>My live site domain value is like ".examplelive.com" and the test site is similar but shorter, e.g. ".example.com". </p>
  
  <p>Here is the funny thing: The cookie is set fine, both on my testing server and live server. On my testing server, I can see both cookies, the cookie is duplicated! </p>
  
  <p>So, for example when I navigate from my live server to my testing server, the cookies is duplicated and I can see both live and testing versions when browsing the test stie in Chrome. In FireFox, I only see one copy of the cookie in either site, which is desired result. </p>
  
  <p>I have an entry in /etc/hosts on my machine to direct ".example.com" to my test site.</p>
  
  <p>So, am I doing something wrong in how I'm setting cookies, or is this a quirk of Chrome?</p>