diff options
author | robocoder <anthon.pang@gmail.com> | 2011-01-01 23:14:36 +0300 |
---|---|---|
committer | robocoder <anthon.pang@gmail.com> | 2011-01-01 23:14:36 +0300 |
commit | 97334f464eae015541541a2859b4fdcb93a3c3a4 (patch) | |
tree | 4d2fd910e9092a7153f5f2ad86f7b8ac5be0dc16 /core/Session.php | |
parent | 9db59ef3d38f0e023cf5c88404a2757c5243f668 (diff) |
fixes #1910
git-svn-id: http://dev.piwik.org/svn/trunk@3552 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/Session.php')
-rw-r--r-- | core/Session.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/Session.php b/core/Session.php index ea56cb38ab..76ad17b803 100644 --- a/core/Session.php +++ b/core/Session.php @@ -77,6 +77,11 @@ class Piwik_Session extends Zend_Session if($ok) { @ini_set('session.save_path', $sessionPath); + + // garbage collection may disabled by default (e.g., Debian) + if(ini_get('session.gc_probability') == 0) { + @ini_set('session.gc_probability', 1); + } } // else rely on default setting (assuming it is configured to a writeable folder) } |