📜  检查是否设置了会话 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:40.008000             🧑  作者: Mango

代码示例1
if (isset($_SESSION["userid"])) {
    echo "Logged in";
} else {
    echo "Not Logged in";
}