时间:2021-07-01 10:21:17 帮助过:9人阅读
session_start();
if(Login() == true)
{
$_SESSION['login'] = 'ok';
//跳转到page.php
}
else
{
echo "Login error";
}
session_start();
echo $_SESSION['login'];
if(empty($_SESSION['login'])||$_SESSION['login']!='ok') //未登陆则跳回index
{
?>
}
.....
.....