如果是使用$_SESSION['aa']="";
就不能使用session_register("aa"), 

解决方案 »

  1.   

    我明白这是什么意思,只是不明白为什么?
    难道使用$_SESSION['aa']="";就可以不注册而直接使用吗?
    为什么呢?
      

  2.   

    我明白了,谢谢if you want your script to work regardless of register_globals, you need to instead use the $_SESSION array as $_SESSION entries are automatically registered. If your script uses session_register(), it will not work in environments where the PHP directive register_globals is disabled.