一个警告而已,你用
@session_start()
也可以
在php.ini中把警告去掉也可以,
假如能有其他更好的解决方法,
不要分了关注!~

解决方案 »

  1.   

    这个不是警告,是错误
    有没有include文件?
    应该是session前面有了输出
      

  2.   

    第一个warning:session 前面有了输出的内容,比如说echo "hello";
    第二个warning:
      cache limiter控制缓存以控制象客户端输出的http头信息,它决定了页面内容是放入缓存的规则(rule),如果设置成nocache,那么就禁止任何客户端的caching,如果设置成public,那么你的全局变量就允许cache(允许放入缓存)
    There is a bug(?) in Internet Explorer v5.5 to do with file downloads over
    a secure (https) web connection when using sessions. If you have a php
    script which delivers files for downloading by setting headers for the
    content-type etc. from a URL like this:getfile.php/filename.ext
    - or -
    getfile.php?file=/filename.extand that script uses sessions, then you must explicitly setsession_cache_limiter('public');*before* you use
    session_start();
    所以,设置session_cache_limiter('public');可解决第二个问题
      

  3.   

    在session_start();前面不要放任何语句。就可以了