PHP may affect what you change in php.ini after it restarted.
这点我还是知道的……电脑都从起过的。无效……而且maxlifetime本身就没动它。
I konw.....ini_set("session.cookie_lifetime",3600*60);it is used by setting the lifetime of cookie,not the lifetime of session.....
<?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"; ?>
$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";
?>