Posted by Oli Filth on 06/13/05 18:02
Jam Pa said the following on 13/06/2005 15:56:
> I have a page with some cookie functionality.
>
> I set the cookie, and 'setCookie' returns true (=success).
>
> However 'print_r($_COOKIE)' shows that no cookies were set.
>
$_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).
--
Oli
[Back to original message]
|