title: I think setcookie is not working
body: <p>I'm new here so please bear with me.</p>
  
  <p>I have this code:</p>
  
  <pre><code>&lt;?php
  include('connectDb.php');
  $code = $conn-&gt;real_escape_string(utf8_encode(md5($_POST['code'])));
  $result = $conn-&gt;query("SELECT * FROM login WHERE prs = '".$code."'")
          or trigger_error($conn-&gt;error);
  $row = $result-&gt;fetch_array(MYSQL_ASSOC);
  if($result-&gt;num_rows &lt; 1){
      echo 'wrong';
  }else{
      session_start();
      session_destroy($_SESSION['continue']);
      session_unset($_SESSION['continue']);
      if(isset($_SESSION['cookie'])){
          setcookie("user", $row["usr"], 15778516381168);
      }else{
          $_SESSION['logIn'] = $row['usr'];
      }
  }
  </code></pre>
  
  <p>Everything works except it won't create the cookie. 
  Feel free to ask anything because I don't know what to tell you anymore. </p>