title: Prevent cookie from getting other pages?
body: <p>I don't want to allow getting cookie from other page ! I have been searched on internet but not really found or may be I don't know how to mention that case .How can I manage that ! I want to get null in <code>test2.php</code> but get cookie in <code>test.php</code> ?</p>
  
  <p><strong>test.php</strong></p>
  
  <pre><code>&lt;?php
  setcookie("acc_id", "23A", time() + 3600, '/');
  header("test.php");
  var_dump($_COOKIE);　// 'acc_id' =&gt; string '23A' (length=3)
  ?&gt;
  </code></pre>
  
  <p><strong>test2.php</strong></p>
  
  <pre><code>&lt;?php
  var_dump($_COOKIE); // 'acc_id' =&gt; string '23A' (length=3)
  </code></pre>