title: Cookie works in Chrome but not in IE or Safari?
body: <p>I'm using cookies with my log-in system and the system works on Chrome, but then when I go to IE or Safari, it's not working. For some reason the cookies are not being set, I've tried to echo them to no avail.</p>
  
  <p>Here is the code that makes the cookies:</p>
  
  <pre><code>if(isset($_POST['log_in_iniator'])){
      $username = $_POST['username'];
      $password = $_POST['password'];
      $log_in_checker_status = check_user_data($username, $password);
      if($log_in_checker_status == 'true'){
          //user has successfully logged in, create two cookies
          //cookie 1 username
          setcookie('username', $username, 0, 'http://shkeek.com');
          setcookie('loginstatus', 'true', 0, 'http://shkeek.com');
          header("Location: index.php");
      }else{
          setcookie('loginstatus', 'invalid', 0);
          header("Location: index.php");
      }
  }
  </code></pre>