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:
authormattpiwik <matthieu.aubry@gmail.com>2008-06-30 02:05:21 +0400
committermattpiwik <matthieu.aubry@gmail.com>2008-06-30 02:05:21 +0400
commit25b46d2d21f627dcdf1c0fbc9c622008319ca920 (patch)
treed49b6a8484adb45d0925405de069a777de3949fb /index.php
parentded573bf397fe61a6ba3687df0c55cef17356884 (diff)
- fix #246 session_start() called even if session already started
git-svn-id: http://dev.piwik.org/svn/trunk@539 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'index.php')
-rwxr-xr-xindex.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/index.php b/index.php
index 4a6cad573d..963467656b 100755
--- a/index.php
+++ b/index.php
@@ -41,7 +41,10 @@ require_once "modules/ExceptionHandler.php";
set_error_handler('Piwik_ErrorHandler');
set_exception_handler('Piwik_ExceptionHandler');
-session_start();
+if(strlen(session_id()) === 0)
+{
+ session_start();
+}
require_once "FrontController.php";