Jam Pa said the following on 13/06/2005 15:56:
$_COOKIE only holds the cookie variables that have been *sent* from
the user's browser. Therefore if you call setCookie(), you won't see
anything in $_COOKIE until after the user refreshes (or moves to
another page on your site).