note 68076 deleted from function.setcookie by bjori
| From: | bjori@php.net | Date: | Wed, 02 Aug 2006 13:22:07 +0000 |
| Subject: | note 68076 deleted from function.setcookie by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-115466@lists.php.net to get a copy of this message | ||
Note Submitter: Bogumil Wirchanowicz
----
You can simple read all cookies from client machine, with "foreach" and superglobal
variable "$_COOKIE".
<?php
if (is_array($_COOKIE)) foreach($_COOKIE as $k=>$v){
echo 'Cookie name: '.$k.'; Cookie value: '.$v.';<br/>';
}
?>
(is_array is checking if $_COOKIE is initialized array).