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-04-26 03:31:03 +0400
committervipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-04-26 03:31:03 +0400
commit343f365af322f68d6ea86ea929041ce34e8957d6 (patch)
treee146b4cef3571ad57a9ecfa8015d109da6a6ad7f
parent9b1d3a8a093814af1af9bee9618800bf44484f0e (diff)
Fixes #646, setting cache headers explicitly to nocache instead of
assuming PHP default.
-rwxr-xr-xindex.php3
-rw-r--r--piwik.php2
2 files changed, 4 insertions, 1 deletions
diff --git a/index.php b/index.php
index 808d1b53d2..57efbba53c 100755
--- a/index.php
+++ b/index.php
@@ -13,6 +13,7 @@ error_reporting(E_ALL|E_NOTICE);
@ini_set('display_errors', 1);
@ini_set('magic_quotes_runtime', 0);
@ini_set('session.save_handler', 'files');
+
if(!defined('PIWIK_INCLUDE_PATH'))
{
define('PIWIK_INCLUDE_PATH', dirname(__FILE__));
@@ -36,6 +37,8 @@ if(!defined('PIWIK_ENABLE_ERROR_HANDLER') || PIWIK_ENABLE_ERROR_HANDLER)
set_error_handler('Piwik_ErrorHandler');
set_exception_handler('Piwik_ExceptionHandler');
}
+
+session_cache_limiter('nocache');
if(strlen(session_id()) === 0)
{
session_start();
diff --git a/piwik.php b/piwik.php
index 92c571d958..c5b9fe8d27 100644
--- a/piwik.php
+++ b/piwik.php
@@ -34,7 +34,7 @@ require_once "Tracker/Db.php";
require_once "Tracker/Visit.php";
require_once "Tracker/GoalManager.php";
-
+session_cache_limiter('nocache');
ob_start();
if($GLOBALS['PIWIK_TRACKER_DEBUG'] === true)
{