title: PHP setcookie() not working
body: <p>On one page I have something like this</p>
  
  <pre><code>setcookie('user', 'value' ,6000, '/', 'mydomain.co.uk');
  </code></pre>
  
  <p>On the subsequent page I have</p>
  
  <pre><code>var_dump($_COOKIE);
  </code></pre>
  
  <p>I can see all the automatically generated ones, like <code>PHPSESSID</code> but I cannot see <code>user</code>.</p>
  
  <p>If I do <code>echo setcookie('user', 'value' ,6000, '/', 'mydomain.co.uk');</code> it returns <code>true</code>. So I'm not sure why I can't see it.</p>
  
  <p>I have tried a lot of different ideas, but nothing has worked. Also, I have using .htaccess to redirect all requests via one page <code>index.php</code> not sure if this is doing anything.</p>