session 警告问题
时间:2005-11-03 来源:ydz5
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 not consider global
variables as a source of data, unless register_globals is enabled. 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 line 0
php 手册写的
注意
If you are using $_SESSION (or $HTTP_SESSION_VARS), do not use session_register(),
[url=mk:@MSITStore:F:学习phplatest.chm::/fancy/function.session-is-registered.html]session_is_registered()[/url]
, and
[url=mk:@MSITStore:F:学习phplatest.chm::/fancy/function.session-unregister.html]session_unregister()[/url]
.
直接负值应用即可 用 isset() 可以检查是否已经使用过某一个 session 变量
相关阅读 更多 +