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:
authorThomas Steur <tsteur@users.noreply.github.com>2019-09-23 00:01:09 +0300
committerdiosmosis <diosmosis@users.noreply.github.com>2019-09-23 00:01:09 +0300
commit83e025eede225579ce3120d3620f812fb037b3b2 (patch)
tree9e424d86ea94123d0793eaf5abb7f7b43ba55332 /core/bootstrap.php
parent6db4698f572d6500d461e5d2fca565dcf1e12932 (diff)
If session was already started, do not start it again (#14896)
* If session was already started, do not start it again refs https://github.com/matomo-org/matomo/issues/12963 refs https://forum.matomo.org/t/an-error-occurred/32500 * Update Session.php * Update bootstrap.php * add test
Diffstat (limited to 'core/bootstrap.php')
-rw-r--r--core/bootstrap.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/bootstrap.php b/core/bootstrap.php
index 57c3f95f8d..04d161a57b 100644
--- a/core/bootstrap.php
+++ b/core/bootstrap.php
@@ -29,7 +29,9 @@ if (!defined('PIWIK_VENDOR_PATH')) {
// NOTE: the code above must be PHP 4 compatible
require_once PIWIK_INCLUDE_PATH . '/core/testMinimumPhpVersion.php';
-session_cache_limiter('nocache');
+if (session_status() !== PHP_SESSION_ACTIVE) {
+ session_cache_limiter('nocache');
+}
define('PIWIK_DEFAULT_TIMEZONE', @date_default_timezone_get());
@date_default_timezone_set('UTC');