登录会话不行 [英] login session not behaving

查看:64
本文介绍了登录会话不行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI,


我希望有人可以提供帮助。我正试图在这个menu.inc页面上显示登录用户的用户名,只有在登录时才显示某些页面。


我对以下代码的结果是否用户名显示,只是嗨! (登录链接按计划消失)所有页面显示(已记录和未记录)


感谢您的帮助



I hope someone can help. I''m trying to show the username of the logged in user on this menu.inc page and certain pages only when logged in.

The result I have with the code below is no username showing, just "Hi !" (the "login" link disappear as planned) and all pages showing (logged and un-logged)

thank you for your help

展开 | 选择 | Wrap | 行号

推荐答案

显然


_SESSION


userdetails [" Username"]] 不存在或为空。尝试 var_dump(
userdetails["Username"]] does not exist or is empty. try var_dump(


这篇关于登录会话不行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆