// start session session_start(); $old_user = $_SESSION['valid_user']; unset($_SESSION['valid_user']); $result_dest = session_destroy(); do_html_header('Logging out'); if (!empty($old_user)) { if ($result_dest) { echo 'Logged out.<br />'; do_html_url('login.php', 'Login'); }else { echo 'Could not log you out.<br />'; } }else { echo 'You are not logged in ,so have not been logged out.<br />'; do_html_url('login.php', 'Login'); } do_html_footer(); ?>
register_form.php