session_cache_limiter("private");
加在session_start();之前

解决方案 »

  1.   

    <?
    session_cache_limiter("public");
    session_start();
    ....
      

  2.   

    <?
    session_cache_limiter("public");
    session_start();
    ....
      

  3.   

    <?
    session_cache_limiter("public");
    session_start();
    ....
    ?>
      

  4.   

    session_cache_limiter() returns the name of the current cache limiter. If cache_limiter is specified, the name of the current cache limiter is changed to the new value. The cache limiter controls the cache control HTTP headers sent to the client. These headers determine the rules by which the page content may be cached. Setting the cache limiter to nocache, for example, would disallow any client-side caching. A value of public, however, would permit caching. It can also be set to private, which is slightly more restrictive than public.