将session清空$_SESSION=array();然后每个页面都这么判断if(!$_SESSION['user_id']{header("Location:登陆页面");}
session和cookie清空,当sid ==null 时跳转到登陆界面