note 68076 added to function.setcookie

From: Date: Wed, 12 Jul 2006 12:14:26 +0000
Subject: note 68076 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-114694@lists.php.net to get a copy of this message
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). ---- Server IP: 83.64.128.68 Probable Submitter: 82.160.228.146 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.setcookie.php Edit -- http://master.php.net/note/edit/68076 Del: integrated -- http://master.php.net/note/delete/68076/integrated Del: useless -- http://master.php.net/note/delete/68076/useless Del: bad code -- http://master.php.net/note/delete/68076/bad+code Del: spam -- http://master.php.net/note/delete/68076/spam Del: non-english -- http://master.php.net/note/delete/68076/non-english Del: in docs -- http://master.php.net/note/delete/68076/in+docs Del: other reasons-- http://master.php.net/note/delete/68076 Reject -- http://master.php.net/note/reject/68076 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#114694) next »