Created
January 22, 2019 16:44
-
-
Save parzibyte/fd6ceb5f7f49ae4bcedda076fb159e60 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 | |
# Si no entiendes esto, primero mira a login.php | |
# Iniciar sesión (sí, aunque la vamos a destruir, primero se debe iniciar) | |
session_start(); | |
# Después, destruirla | |
# Eso va a eliminar todo lo que haya en $_SESSION | |
session_destroy(); | |
# Finalmente lo redireccionamos al formulario | |
header("Location: formulario.html"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment