PHP: Check if Cookie is set

Here is some PHP for debugging what cookie data is stored.

Dump All

var_dump($_COOKIE );

Dump if Cookie exists

if( isset( $_COOKIE['cookiename']  ) ) 
{ 
     var_dump($_COOKIE );  
} 
else 
{ 
     echo 'no cookie for you!'; 
}