php会话不适用于弹出登录 [英] php session not working for popup login
问题描述
我不擅长这个,一直在尝试,但没有奏效.我不知道为什么 get.php
是索引页,它的文件 header.php
有另一个文件 login.php
.我不知道为什么会议没有按照我认为应该的方式工作.登录时页脚应该显示 username
但它没有.
get.php
<html lang="zh-cn"><头><meta charset="utf-8"><link rel="stylesheet" href="style.css" media="all">头部><身体><?php include("header.php");?><?php include("menu.php");?><?php include("slider.php");?><?php include("content.php");?><div id="页脚"><?phpif(isset($_SESSION['currentuser'])==true){echo"$用户名";}别的{回声未登录";}?>