0
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 didn’t work, please help me
<?php
if ( isset($_COOKIE["PAI"]["FILHO"] )) {
$valor = $_COOKIE["PAI"]["FILHO"];
}
else{
$valor = 0;
}
echo "cookie: ".$valor;
?>
Why didn’t it work? What is the result of
var_dump($_COOKIE)
?– Woss