From aaa6ace377f57ca22de56eff96230cfcc74c62a8 Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Mon, 06 Oct 2008 14:03:10 -0400 Subject: [PATCH] #1485460: session.gc_* moved to main .htaccess file --- program/include/iniset.php | 2 -- .htaccess | 28 ++++++++++++++++------------ 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/.htaccess b/.htaccess index 9e3667b..bd11ae6 100644 --- a/.htaccess +++ b/.htaccess @@ -1,18 +1,22 @@ # AddDefaultCharset UTF-8 AddType text/x-component .htc -<IfModule mod_php5.c> - php_flag display_errors Off - php_flag log_errors On - php_value error_log logs/errors - php_value upload_max_filesize 5M - php_value post_max_size 6M - php_value memory_limit 64M - php_value session.auto_start 0 - php_value zlib.output_compression 0 - php_value magic_quotes_gpc 0 - php_value zend.ze1_compatibility_mode 0 -</IfModule> +php_flag display_errors Off +php_flag log_errors On +php_value error_log logs/errors + +php_value upload_max_filesize 5M +php_value post_max_size 6M +php_value memory_limit 64M + +php_value zlib.output_compression 0 +php_value magic_quotes_gpc 0 +php_value zend.ze1_compatibility_mode 0 + +php_value session.auto_start 0 +php_value session.gc_maxlifetime 21600 +php_value session.gc_divisor 500 +php_value session.gc_probability 1 <FilesMatch "(\.inc|\~)$"> Order allow,deny diff --git a/program/include/iniset.php b/program/include/iniset.php index 5ef5b7d..5fe1011 100755 --- a/program/include/iniset.php +++ b/program/include/iniset.php @@ -53,8 +53,6 @@ ini_set('session.name', 'roundcube_sessid'); ini_set('session.use_cookies', 1); ini_set('session.only_use_cookies', 1); -ini_set('session.gc_maxlifetime', 21600); -ini_set('session.gc_divisor', 500); ini_set('error_reporting', E_ALL&~E_NOTICE); set_magic_quotes_runtime(0); -- Gitblit v1.9.1