1. 检查ini_set的返回值
2. 检查session.gc_maxlifetime的值

解决方案 »

  1.   

    1、下文通过ini_get得到值是正确的。2、值为session.gc_maxlifetime = 1440。有影响么?
      

  2.   

    PHP may affect what you change in php.ini after it restarted.
      

  3.   

    这点我还是知道的……电脑都从起过的。无效……而且maxlifetime本身就没动它。
      

  4.   

    I konw.....ini_set("session.cookie_lifetime",3600*60);it is used by setting the lifetime of cookie,not the lifetime of session.....
      

  5.   

    <?php/* set the cache limiter to 'private' */session_cache_limiter('private');
    $cache_limiter = session_cache_limiter();/* set the cache expire to 30 minutes */
    session_cache_expire(30);
    $cache_expire = session_cache_expire();/* start the session */session_start();echo "The cache limiter is now set to $cache_limiter<br />";
    echo "The cached session pages expire after $cache_expire minutes";
    ?>