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:
Diffstat (limited to 'core/Session/SessionNamespace.php')
-rw-r--r--core/Session/SessionNamespace.php37
1 files changed, 37 insertions, 0 deletions
diff --git a/core/Session/SessionNamespace.php b/core/Session/SessionNamespace.php
new file mode 100644
index 0000000000..63ede5f45e
--- /dev/null
+++ b/core/Session/SessionNamespace.php
@@ -0,0 +1,37 @@
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
+ *
+ * @category Piwik
+ * @package Piwik
+ */
+namespace Piwik\Session;
+
+use Piwik\Common;
+use Zend_Session_Namespace;
+
+/**
+ * Session namespace.
+ *
+ * @package Piwik
+ * @subpackage Session
+ */
+class SessionNamespace extends Zend_Session_Namespace
+{
+ /**
+ * @param string $namespace
+ * @param bool $singleInstance
+ */
+ public function __construct($namespace = 'Default', $singleInstance = false)
+ {
+ if (Common::isPhpCliMode()) {
+ self::$_readable = true;
+ return;
+ }
+
+ parent::__construct($namespace, $singleInstance);
+ }
+}