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
在register_globals=off情况下使用了session_register函数

解决方案 »

  1.   

    php4.2.0以后版本注册session变量,建议用$_SESSION["变量名"]="变量值";
      

  2.   

    如果用session_register第一次打开时,就会出现上述提示。
      

  3.   

    它就是提示你在session变量注册时版本所出现的问题PHP 4.2.3后一般用$_SESSION["变量名"]="变量值";
      

  4.   

    我就是用$_SESSION["变量名"]="变量值"