title: cookie create with php can't be read in wordpress
body: <p>i create a simple cookie</p>
  
  <p>the cookie is there, exists, but i can't read it inside wordpress by a shortcode or a function.</p>
  
  <p>PHP cookie_create.php</p>
  
  <pre><code>$data = $_POST['v1'];
  setcookie( 'namecookie', $data, time() + 3600);
  </code></pre>
  
  <p>Inside wordpress i try read it</p>
  
  <p>Function.php or in the main file of a plugin.</p>
  
  <pre><code>if(isset($_COOKIE['namecookie']))
  {
    echo "All right";
  }
  else
  {
  echo "something is wrong"; 
  }
  </code></pre>
  
  <p>no matter what I do, always prints else</p>