是用VScode写的
<?php
header("Content-Type:text/html; charset=utf-8");
session_start();
if (isset($_COOKIE['username'])){
$_SESSION['username'] = $_COOKIE['uasename'];
$_SESSION['islogin']=1;
}
if (isset($_SESSION['islogin'])){
echo $_SESSION['username'].",欢迎进入会员中心-----";
echo "<a href='loginout.php'>注销</a>";
}
else {
echo "你还未登录,请<a href = 'login.html'>登录</a>";
}
?>
这是什么情况啊