Session Destroyed
'; // display to see if there is anything left echo 'Session ID: '. session_id() .'
'; var_dump($_SESSION); } // Check if any session variables are set and retrieve all stored names and values if (count($_SESSION) > 0) { echo '
'; foreach ($_SESSION as $key => $value) { echo "
Key: $key"; echo "
Value: $value"; } echo '

'; // display the session ID and array, then call the function to terminate the session echo 'Session ID: ' . session_id() . '
'; var_dump($_SESSION); kill_session(); } else echo 'Please Log in'; ?>