diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-07-04 06:22:03 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-07-04 06:22:03 +0000 |
commit | 831e84b91882223e919a8763cee26710119ac770 (patch) | |
tree | a38031ef1a9e7b3143c1308d3255a2d1948ef41c /sites/default | |
parent | 5a7742b25452364eaa7b782e9fce0bc7cc107edd (diff) | |
download | brdo-831e84b91882223e919a8763cee26710119ac770.tar.gz brdo-831e84b91882223e919a8763cee26710119ac770.tar.bz2 |
- Patch #72856 by quicksketch: on some systems, PHP's garbage collector is disabled so make sure to enable it.
Diffstat (limited to 'sites/default')
-rw-r--r-- | sites/default/default.settings.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sites/default/default.settings.php b/sites/default/default.settings.php index f831649aa..9434dd28a 100644 --- a/sites/default/default.settings.php +++ b/sites/default/default.settings.php @@ -194,7 +194,18 @@ $update_free_access = FALSE; * See drupal_initialize_variables() in includes/bootstrap.inc for required * runtime settings and the .htaccess file for non-runtime settings. Settings * defined there should not be duplicated here so as to avoid conflict issues. - * + */ + +/** + * Some distributions of Linux (most notably Debian) ship their PHP + * installations with garbage collection (gc) disabled. Since Drupal depends on + * PHP's garbage collection for clearing sessions, ensure that garbage + * collection occurs by using the most common settings. + */ +ini_set('session.gc_probability', 1); +ini_set('session.gc_divisor', 100); + +/** * Set session lifetime (in seconds), i.e. the time from the user's last visit * to the active session may be deleted by the session garbage collector. When * a session is deleted, authenticated users are logged out, and the contents |