I need to read in PHP an existing cookie, created in classic asp.
<% Response.Cookies("PAI")("FILHO") %>
I tried to read in PHP this way below and it did not work, please help me
<?php
if ( isset($_COOKIE["PAI"]["FILHO"] )) {
$valor = $_COOKIE["PAI"]["FILHO"];
}
else{
$valor = 0;
}
echo "cookie: ".$valor;
?>