关于php页面session报错的解决办法

报错的内容如下:
Warning</b>:  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

其实解决办法已经写在警告里面,我只是记录一下怕自己忘了,嘿嘿
<1>找到apache加载的php.ini所在位置
<2>找到session.bug_compat_warn把它的值设为off

完了!

你可能感兴趣的:(apache,PHP)