检查一下session目录的权限和ower

解决方案 »

  1.   

    我无权检查,FREEBSD+PHP4.22是空间提供商的。
      

  2.   

    你试试改成 
    unset($_SESSION['sId']);
      

  3.   

    不行呀。
    但是这样可以,不知道为什么?删除数组中的某个元素!
    function Remove($a_id)
    {
      foreach($_SESSION['sId'] as $key=>$value)
      {
       if($_SESSION['sId'][$key] == $a_id)
       {
       unset($GLOBALS[_SESSION]['sId'][$key]);
       unset($GLOBALS[_SESSION]['sBcount'][$key]);
       unset($GLOBALS[_SESSION]['sPrice'][$key]);
       break;
      }
     }$this->Update();
    $this->Calculate();
    return true;
    }