关于php.ini中一些关于session中的疑问
1. session.gc_probability = 1
session.gc_divisor = 100
e.g. 1/100 means there is a 1% chance that the GC process starts; on each request.
这是指在每个请求中有1%的可能性会把/tmp目录下的session文件清除掉?不管我的session.gc_maxlifetime是设置为多长时间?
2. session.cache_limiter的默认值是nocache,这个是指客户端禁止使用session的缓存?那为什么我的php程序仍然可以使用session?
3. session.cache_expire是不是要在session.cache_limiter不为nocache才起作用?
那如果我将session.cache_expire设为private,将session.cache_limiter时间设长一点,同时session.gc_maxlifetime也设长点,比如4小时,能不能让页面过4小时才超时返回?作者: HonestQiao 时间: 2006-11-02 13:34
关于php.ini中一些关于session中的疑问
1. session.gc_probability = 1
session.gc_divisor = 100
e.g. 1/100 means there is a 1% chance that the GC process starts; on each request.
这是指在每个请求中有1%的可能性会把/tmp目录下的session文件清除掉?不管我的session.gc_maxlifetime是设置为多长时间?
这个是给用来清除过时的session记录文件的