English 中文(简体)
美元_SIONESS[id]与无会议能力的人如何消除错误?
原标题:$_SESSION[id] undifined error with people with no session how remove it?
  • 时间:2011-10-31 01:23:24
  •  标签:
  • php
  • session

基本如此之举 我一直在努力使届会在同一页上出现变化,有届会的人和没有开会的人。 当你没有开会时,我会发现一个不确定的变量错误。 它与正常会议一样。

$session = $_SESSION[ id ];

任何想法,如果没有人会看到这种错误,那么我可以如何消除这一错误,而有一席之地的人民会失去自己的会议,就像《<标准>”($_SESSION [id]那样。

最佳回答
$session = isset($_SESSION[ id ]) ? $_SESSION[ id ] : null;
问题回答

暂无回答




相关问题
why the session in iis automatically log out?

I used iis6, and when i called a function Directory.delete(), the all the session relate this website will be logged out. and i debugged the website, i found no exception. any one have ideas on this ? ...

Check session from a view in CodeIgniter

What is the best way to check session from a view in CodeIgniter, it shows no way in their user guide, otherwise I will have to make two views on everything, which is kinda weird...still a newbie to ...

Can I get the size of a Session object in bytes in c#?

Is it possible to get the size(in bytes) of a Session object after storing something such as a datatable inside it? I want to get the size of a particular Session object, such as Session["table1"], ...

提供严格分类的出席会议物体

提供严格分类的与会机会的最佳方式是什么? 我正计划转而选择矩阵,这正在促使汇编者抱怨我的幻觉方案拟订方法......

PHP Session is not destroying after user logout

I m trying to create an authentication mechanism for my PHP Application and I m having difficulty destroying the session. I ve tried unsetting the authentication token which was previously set within ...

热门标签