|
一:我些了一个登录页面:现判断
session_start();
if(!session_is_registered("user"))
{
session_register("user");
//重新跳回这个页面
}
else
{
echo $user;
}
却显示不出来这个变量,
1.当我新注册的时候,出险这个警告:
Warning: Unknown(): Your script possibly relies on a session side-effect which
existed until PHP 4.2.3. Please be advised that the session extension does no
t consider global variables as a source of data, unless register_globals is en
abled. You can disable this functionality and this warning by setting session.
bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on l
ine 0
刷新一次,就OK了.
2.我看了我的/tmp文件夹里的sessionid文件已经有了,而且里面也有$user的值,却不能显
示,大虾高速我什么原因. |
|