Last active
December 10, 2015 11:29
-
-
Save bertzzie/4427700 to your computer and use it in GitHub Desktop.
PHP Session closing
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 | |
session_start(); | |
$_SESSION['user'] = 'testing'; | |
echo "session before unset: " . $_SESSION['user']; | |
echo "<br>"; | |
unset($_SESSION['user']); | |
echo "session after unset: " . $_SESSION['user']; | |
// Result: | |
// --------------------------------------------------------------------- | |
// | |
// session before unset: testing | |
// session after unset: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment