![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
04/02/2010, 15:58
|
| | Fecha de Ingreso: octubre-2007
Mensajes: 724
Antigüedad: 17 años, 4 meses Puntos: 4 | |
Respuesta: Novato de cookies, como se generan ??? Me ha devuelto esto del echo en la web ( al actualizar 2 veces la pagina):
cookie puestaarray(1) { ["micookie"]=> string(3) "foo" } array(1) { ["micookie"]=> string(3) "foo" } array(1) { ["micookie"]=> string(3) "foo" }
lo he puesto asi:
<?php
if (!headers_sent()) {
setcookie("micookie", "foo");
echo "cookie puesta";
} else {
echo "ya se enviaron las cabeceras";
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Cookie</title>
<?php var_dump($_COOKIE);?>
</head>
<body>
<?php var_dump($_COOKIE);?>
</body>
</html>
He consultad oen el directorio de Cookies de mi pc, pero no me ha entrado ninguno con fecha de hoy. No entiendo |