Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created January 22, 2019 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/fd6ceb5f7f49ae4bcedda076fb159e60 to your computer and use it in GitHub Desktop.
Save parzibyte/fd6ceb5f7f49ae4bcedda076fb159e60 to your computer and use it in GitHub Desktop.
<?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