title: PHP setcookie not working
body: <p>Looks like it should be working:</p>
  
  <pre><code>if ($_POST['stayloggedin'] == 'stayloggedin') {
  
      setcookie("user", $_POST['mail'], time()+7*24*60*60, '/', 'subdomain.example.com', false, true);
      setcookie("hash", md5(sha1(md5($_POST['pw']))), time()+7*24*60*60, '/', 'subdomain.example.com', false, true);
  
  }
  
  header("Location: /"); 
  exit();
  </code></pre>
  
  <p>I have put ob_start() on top of the code, so that shouldn't be the point.</p>