Home > Backend Development > PHP Tutorial > 织梦plus/diy.php问题

织梦plus/diy.php问题

WBOY
Release: 2016-06-20 12:35:35
Original
2326 people have browsed it

我想给这个页面添加管理员登录权限哈  只有管理员登录后才能进入plus/diy.php页面

我已经在dede/login页面写了 登录成功 

 if($res==1)            {                $_SESSION["dengluguo"]= 4;                $cuserLogin->keepUser();                if(!empty($gotopage))                {                    ShowMsg('成功登录,正在转向管理管理主页!',$gotopage);                    exit();                }                else                {                    ShowMsg('成功登录,正在转向管理管理主页!',"index.php");                    exit();                }            }
Copy after login


登录成功赋值了 $_SESSION["dengluguo"]= 4;  为什么 到了diy.php页面  获取不到呢

echo $_SESSION["dengluguo"];获取不到

$_SESSION不是只有浏览器退出了 才会释放么。。


回复讨论(解决方案)

看下$_COOKIE里有吗

看下$_COOKIE里有吗

这个跟$_COOKIE有关系?

织梦默认session好像没东西,写到cookie里去了

织梦默认session好像没东西,写到cookie里去了

 $_SESSION["dengluguo"]= 4;我已经赋值了啊 也没用?

你好,我有事想请教你,可以联系下马,?》 我的微信18664821547

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