 <p>In setcookie function you can only set the cookie name. If you want to get that cookie value then you can take it via the <code>$_COOKIE['name']</code></p> <p>Be sure that when you create cookie you need to set domain name in setcookie function as well.</p>