Commit 831e84b9 authored by Dries's avatar Dries

- Patch #72856 by quicksketch: on some systems, PHP's garbage collector is...

- Patch #72856 by quicksketch: on some systems, PHP's garbage collector is disabled so make sure to enable it.
parent 5a7742b2
......@@ -194,7 +194,18 @@
* See drupal_initialize_variables() in includes/ 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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment