请问session输出有关问题

WBOY
Release: 2016-06-13 13:40:48
Original
913 people have browsed it

请教session输出问题
index.php文件:

session_start();
$_session["login"]="true";
echo $_session["login"];
?>
可以正常显示true

同一目录下index1.php文件:


session_start();
echo $_session["login"];
?>
不能正常显示

求高人!



------解决方案--------------------
大写!
php 的变量时大小写铭感的

$_SESSION["login"]
------解决方案--------------------
up 大写即可

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template