Saturday, August 25, 2012

PHP iterating all cookies

To iterate all of the cookies that have been set in PHP:

foreach ($_COOKIE as $cookie_name => $cookie_value)
{
 echo "$cookie_name with value $cookie_value";
 }

No comments:

Post a Comment