Ver Mensaje Individual
  #2 (permalink)  
Antiguo 11/12/2003, 06:43
josemi
Ex Colaborador
 
Fecha de Ingreso: junio-2002
Mensajes: 9.091
Antigüedad: 21 años, 10 meses
Puntos: 16
Hola,

La respuesta esta en el manual (www.php.net/setcookie):
Cita:
Cookies must be deleted with the same parameters as they were set with. If the value argument is an empty string (""), and all other arguments match a previous call to setcookie, then the cookie with the specified name will be deleted from the remote client.
Es decir, para borrar una cookie, tienes que poner en el setcookie() todos los parametros que pusistes para crearla, con los mismos valores (excepto el valor). Asi que para borrar tu cookie:
Código PHP:
//Y en cerrar.php:
setcookie("nombre",""0""00); // los mismos parametros, los mismos valores 
Espero haber sido de ayuda.
__________________
Josemi

Aprendiz de mucho, maestro de poco.