title: setcookie wont work with header redirect?
body: <p>I'm trying to set a cookie and using header redirect . but cookie not setting . I have tried <code>print_r($_COOKIE)</code>. So, I'm sure that cookie is not setting in that place? </p>
  
  <pre><code>setcookie("re",$re);
  
  header('Location: ' . $_SERVER['HTTP_REFERER']);
  </code></pre>