0 Star 1 Fork 0

yicao/bookmark

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
logout.php 546 Bytes
Copy Edit Raw Blame History
jz authored 2016-07-13 10:39 . 实现登出功能
<?php
/**
* Created by PhpStorm.
* User: jz
* Date: 16/7/13
* Time: 上午10:24
*/
require_once ('bookmark_fns.php');
session_start();
$user = $_SESSION['valid_user'];
unset($_SESSION['valid_user']);
$result_dest = session_destroy();
do_html_header('登出');
if (!empty($user)){
if ($result_dest){
echo '登出成功';
do_html_url('login.php', '登陆');
}else {
echo '不能登出';
}
}else {
echo '您还没有登陆,请先登陆';
do_html_url('login.php', '登陆');
}
do_html_footer();
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/yicao/bookmark.git
git@gitee.com:yicao/bookmark.git
yicao
bookmark
bookmark
master

Search