用session_destory();session_unset();全试一遍,保证救注销了!

解决方案 »

  1.   

    但在这样写的话会提示出错的;
    <?php session_start();
    error_reporting(7); session_destroy($sessname);
    session_destroy($sesspass);?>
    Warning: Wrong parameter count for session_destroy() in C:\Apache2\htdocs\project\bbsguest.php on line 8Warning: Wrong parameter count for session_destroy() in C:\Apache2\htdocs\project\bbsguest.php on line 9
      

  2.   

    if (isset($_SESSION['sessname']) )
        unset($_SESSION['sessname']);session_destroy();//不要加参数