欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

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

程序员文章站 2024-04-04 21:30:11
...
请教一个异常: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节的配置

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

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。

相关文章

相关视频