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.php')
-rw-r--r--core/Session.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Session.php b/core/Session.php
index 871ae1650a..7109dd0db2 100644
--- a/core/Session.php
+++ b/core/Session.php
@@ -39,7 +39,8 @@ class Session extends Zend_Session
*/
public static function start($options = false)
{
- if (self::$sessionStarted
+ if (headers_sent()
+ || self::$sessionStarted
|| (defined('PIWIK_ENABLE_SESSION_START') && !PIWIK_ENABLE_SESSION_START)
) {
return;