setcookie and get on a other page
<p>How do you get a php cookie on a ohter page than where he is set?</p>

<p>example:</p>

<p>Cookie starts on page: index1.php</p>

<pre><code>&lt;?php 
$cookiewaarde = 'example' ;
setcookie("cookiename", $cookiewaarde, time()+ 3600);
?&gt;
</code></pre>

<p>Cookie will get on page: index2.php</p>

<pre><code>&lt;?
if($_COOKIE['cookiename'] != "example") 
{ 
    echo "cookie is set";
}
else 
{ 
    echo 'cookie is not set' ; 
} 
?&gt;
</code></pre>

<p>But i cant find anny cookie on page index2.php. How can i do this??</p>
