title: PHP setcookie() expire issue on Vista
body: <p>On one specific system configuration only (Win Vista, all browsers - all of them allow cookies) I discovered a problem with PHP setcookie. I have created two simple scripts to simplify problem identification:</p>
  
  <p><strong>script_1.php</strong> to set cookie</p>
  
  <pre><code>setcookie("name", "value", time()+3600);    
  header("Location: script_2.php");
  exit();
  </code></pre>
  
  <p><strong>script_2.php</strong> to check result</p>
  
  <pre><code>var_dump($_COOKIE);
  </code></pre>
  
  <p>With above syntax and mentioned config, no cookie "name" is created. When I remove "expire" parameter and leave just</p>
  
  <pre><code>setcookie("name", "value");
  </code></pre>
  
  <p>cookie "name" is set properly. </p>
  
  <p>In Win XP, Win 7, Mac OSX 10.6, Androids, iPad, iPhone + any specific system compatible browsers everything works great with full cookie definition like </p>
  
  <pre><code>setcookie("name", "value", time()+3600, "/", "domain.com", 0, 1);
  </code></pre>
  
  <p>Just Vista has problems on any browser. Time setting on the server is OK.</p>
  
  <p>Thanks for any advice, tip or solution. I am really stacked and helpless here.</p>