Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-06-15 23:41:25 +0400
committervipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-06-15 23:41:25 +0400
commitaf293985ab9bcbb13a7cc4fcb2965359c5a22665 (patch)
tree43fe0ded4c1d4168b418225a193992f4463f0770 /index.php
parentf6465e2e3ae16a51ad2ed0d84f4d28d489159885 (diff)
fixes #805 - don't override memcached session handler
Diffstat (limited to 'index.php')
-rwxr-xr-xindex.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/index.php b/index.php
index 308431f5d3..07a39b1e63 100755
--- a/index.php
+++ b/index.php
@@ -12,7 +12,11 @@
error_reporting(E_ALL|E_NOTICE);
@ini_set('display_errors', 1);
@ini_set('magic_quotes_runtime', 0);
-@ini_set('session.save_handler', 'files');
+if(!in_array(ini_get('session.save_handler'), array('files', 'memcached')))
+{
+ @ini_set('session.save_handler', 'files');
+ @ini_set('session.save_path', '');
+}
if(!defined('PIWIK_INCLUDE_PATH'))
{