rh8下php中使用session的问题

由 kinter 在 04-04-2003 14:42 发表:

rh8下php中使用session的问题

一:我些了一个登录页面:现判断

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

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus