-
-
Save parzibyte/859ec37e0486a335e529b4836a31190f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$nombreCookie = "mi_cookie_visitas"; | |
# Para eliminar una cookie, se pone la fecha de expiración en una fecha anterior | |
$tiempoExpiracion = time() - 1; | |
setcookie($nombreCookie, "", $tiempoExpiracion); | |
# Y redireccionamos a index.php | |
header("Location: index.php"); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment