Home > Backend Development > PHP Tutorial > 这是什么有关问题呢

这是什么有关问题呢

WBOY
Release: 2016-06-13 10:26:48
Original
820 people have browsed it

这是什么问题呢
session_start();
  $_SESSION["login"]="YES";
  $_SESSION["name"]=$name;
我在别的页面怎么取得SESSION里name的值 ; 我在别的页面里用$reader=$_SESSION["name"]; 取不到值

------解决方案--------------------
别的页面有 session_start(); 吗?
------解决方案--------------------
session_start(); 需加在行首。且前面不能有空格。

我在百度的时候看到有些人回答说不用
那是哄小孩子的

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