note 49688 added to function.setcookie

From: Date: Fri, 04 Feb 2005 20:36:16 +0000
Subject: note 49688 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-84542@lists.php.net to get a copy of this message
For listing all the cookies readed in the client machine.- echo sHTTP_COOKIE_VARS(); <?php function sHTTP_COOKIE_VARS() { global $HTTP_COOKIE_VARS; // $HTTP_COOKIE_VARS is not exist in a function $sEcho = ''; $iCookies = 0; ForEach( $HTTP_COOKIE_VARS As $vIndex => $vValue ) { $iCookies++; if( is_array( $vValue ) ) { foreach ( $vValue as $vIndex2 => $vValue2 ) { $sEcho .= '$HTTP_COOKIE_VARS[\'<b>'.$vIndex."</b>']['".$vIndex2.'\'] == "'. $vValue2.'"<br>'; } } else { $sEcho .= '$HTTP_COOKIE_VARS[\'<b>'.$vIndex.'</b>\'] == "'. $vValue.'"<br>'; } } $sEcho .= $iCookies.' cookies listed.'; return $sEcho; /// } ?> ---- Manual Page -- http://www.php.net/manual/en/function.setcookie.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+49688 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49688&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49688&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49688&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49688&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49688&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+49688&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#84542) next »