From 0f0ebc869b3da7577e2d6b47d68d41a9c0045e80 Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Fri, 16 Jan 2004 16:08:35 +0000 Subject: [PATCH] added session.gc_divisor. Patch by Antony Dovgal git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@148867 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/info/functions/ini-set.xml | 7 +++++- reference/session/ini.xml | 34 ++++++++++++++++++++++++---- 2 files changed, 36 insertions(+), 5 deletions(-) diff --git a/reference/info/functions/ini-set.xml b/reference/info/functions/ini-set.xml index e644ee6698..192e2e8e14 100644 --- a/reference/info/functions/ini-set.xml +++ b/reference/info/functions/ini-set.xml @@ -1,5 +1,5 @@ - + @@ -652,6 +652,11 @@ "1" PHP_INI_ALL + + session.gc_divisor + "100" + PHP_INI_ALL + session.gc_maxlifetime "1440" diff --git a/reference/session/ini.xml b/reference/session/ini.xml index ff62b28e0d..a15907f8c3 100644 --- a/reference/session/ini.xml +++ b/reference/session/ini.xml @@ -1,5 +1,5 @@ - +
&reftitle.runtime; &extension.runtime; @@ -40,6 +40,11 @@ "1" PHP_INI_ALL + + session.gc_divisor + "100" + PHP_INI_ALL + session.gc_maxlifetime "1440" @@ -264,13 +269,34 @@ - session.gc_probability specifies the - probability that the gc (garbage collection) routine is started - on each request in percent. Defaults to 1. + session.gc_probability in conjunction with + session.gc_divisor is used to manage probability + that the gc (garbage collection) routine is started. + Defaults to 1. See session.gc_divisor for details. + + + session.gc_divisor + integer + + + + session.gc_divisor coupled with + session.gc_probability defines the probability + that the gc (garbage collection) process is started on every session + initialization. + The probability is calculated by using gc_probability/gc_divisor, + e.g. 1/100 means there is a 1% chance that the GC process starts + on each request. + session.gc_divisor defaults to 100. + + + + session.gc_maxlifetime