Created
June 6, 2019 16:15
-
-
Save putheakhem/9cd6009bad3fc4b36586b353eebefd4d to your computer and use it in GitHub Desktop.
use to clear session from login
This file contains hidden or 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 | |
| session_start(); | |
| unset($_SESSION["username"]); | |
| unset($_SESSION["password"]); | |
| echo 'You have cleaned session'; | |
| header('Refresh: 2; URL = login.php'); | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment