summaryrefslogtreecommitdiff
path: root/php.ini-recommended
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2002-10-03 06:51:38 +0000
committerSascha Schumann <sas@php.net>2002-10-03 06:51:38 +0000
commit04b66595a73ba5b268c636241dbb9cbe05a2925d (patch)
tree911302b22aa3e865f9cb304da5e984d90b0dbf84 /php.ini-recommended
parent0ccb5d98b4b0027523fb1ce422cc93dc13f07ffd (diff)
downloadphp-git-04b66595a73ba5b268c636241dbb9cbe05a2925d.tar.gz
Add recommened entries, including disabling the session bug/feature
Diffstat (limited to 'php.ini-recommended')
-rw-r--r--php.ini-recommended15
1 files changed, 14 insertions, 1 deletions
diff --git a/php.ini-recommended b/php.ini-recommended
index 1b00b61646..b2a1ed9b78 100644
--- a/php.ini-recommended
+++ b/php.ini-recommended
@@ -810,14 +810,27 @@ session.cookie_domain =
; Handler used to serialize data. php is the standard serializer of PHP.
session.serialize_handler = php
-; Percentual probability that the 'garbage collection' process is started
+; Define the probability that the 'garbage collection' process is started
; on every session initialization.
+; The probability is calculated by using gc_probability/gc_dividend,
+; e.g. 1/100 means 1%.
+
session.gc_probability = 1
+session.gc_dividend = 1000
; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
session.gc_maxlifetime = 1440
+; PHP 4.2 and less have an undocumented feature/bug that allows you to
+; to initialize a session variable in the global scope, albeit register_globals
+; is disabled. PHP 4.3 and later will warn you, if this feature is used.
+; You can disable the feature and the warning seperately. At this time,
+; the warning is only displayed, if bug_compat_42 is enabled.
+
+session.bug_compat_42 = 0
+session.bug_compat_warn = 1
+
; Check HTTP Referer to invalidate externally stored URLs containing ids.
; HTTP_REFERER has to contain this substring for the session to be
; considered as valid.