if (isset($_COOKIE)){
$sessionID = $_COOKIE['PHPSESSID'];
// this will display the session variable(s)
foreach ($sessionID as $sname => $svalue){
echo "
" . $sname ." : " .$svalue. "
";
foreach ($svalue as $vname => $vvalue){
echo $vname ." : " .$vvalue. "
";
}
}
// this will display the cookie
foreach ($_COOKIE as $name => $value){
echo $name ." : " .$value. "
";
}
}
Hope this helps