cookie not getting set
<p>A very novice question. I am trying to set a cookie</p>

<pre><code>&lt;?php 
    $expire = time() + 24*60*60; //1 day limit
    setcookie("name","Foo", $expire);
    echo $_COOKIE["name"]; //nothing is displayed
    var_dump($_COOKIE["name"]); //returns NULL 
?&gt;
</code></pre>

<p>I am sure it's something very trivial. Any suggestions?</p>
