Skip to content

Instantly share code, notes, and snippets.

@bertzzie
Last active December 10, 2015 11:29
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 bertzzie/4427700 to your computer and use it in GitHub Desktop.
Save bertzzie/4427700 to your computer and use it in GitHub Desktop.
PHP Session closing
<?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