标签: php session logout
// My session files starts the session require_once("./includes/session.php"); session_unset(); session_destroy(); header("location: login.php"); exit();
答案 0 :(得分:0)
请在开始会话之前确保您已启动会话:session_start();:session_unset();。
session_start();
session_unset();