I'm trying to pass some data from one page to another, but it's not working correctly.
<?php
$nome = "JOSIMAR";
setcookie("nomee", $nome);
echo "<script type='text/javascript'>window.location=' ../demostracao/usuarios/index.php'</script>";
?>
<?php
if(isset($_COOKIE["nomee"]))
{
echo "Existe";
}else
{
echo "Nao existe";
}
?>
It's coming back to me 'does not exist', does anyone give me a light?