PHP用户验证和标签推荐的简单使用(3)

// 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

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/e491488caa6d95c5c9352240082a9d5a.html