首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > PHP >

请问一个错误:Your script possibly relies on a session side-effect which .

2012-03-09 
请教一个异常:Your script possibly relies on a session side-effect which ...详细信息是:Warning:Unkno

请教一个异常:Your script possibly relies on a session side-effect which ...
详细信息是:
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


我在网上查找资料,大多答案是不要用session_register()方法就可以。

问题时我完全没有使用session_register()方法,直接使用$_SESSION[ 'XX ']=$XX   的方法,依然出现此警告,如何解决?

[解决办法]
查看php.ini中session节的配置

热点排行