没有错.我在我的机器上试过了.问你几个问题.你是不是把他包含到其实页里了.如果是其它页里有html或输出.就一定会出错.还有他这句放在最最上面上面不要有东东.

解决方案 »

  1.   

    有時只有第二個錯,有時就有這兩個。Warning: Cannot send session cookie - headers already sent by (output started at c:\program files\apache group\apache\htdocs\php1\view so test\test_frame.php:1) in c:\program files\apache group\apache\htdocs\php1\view so test\test_frame.php on line 2Warning: Cannot send session cache limiter - headers already sent (output started at c:\program files\apache group\apache\htdocs\php1\view so test\test_frame.php:1) in c:\program files\apache group\apache\htdocs\php1\view so test\test_frame.php on line 2
      

  2.   

    看你的出错信息就是你的session_start();前有输出
      

  3.   

    哈哈…………,被困2個小時 zhe mo 的不像樣了
    天才來回答了
    <?前個空格!
    哈哈…………
      

  4.   

    我的也是同样的问题,可是解决不了阿
         session.save_path = "c:\winnt\temp"
    这样对不对阿