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:
authorrobocoder <anthon.pang@gmail.com>2011-06-25 17:55:00 +0400
committerrobocoder <anthon.pang@gmail.com>2011-06-25 17:55:00 +0400
commitf72c21a37767d2beec677eb97f14a1586b7568b2 (patch)
tree32f9584525242af4dc23bf3e81071a0becca7a37 /core/Session.php
parentaf5275f8894153ca32aca8d6b9c04aa342f95830 (diff)
fixes #2491 - still can't reproduce (tested with/without Suhosin, across multiple PHP versions); calling Zend_Session::writeClose() multiple times is handled by Zend/Session.php
git-svn-id: http://dev.piwik.org/svn/trunk@4950 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/Session.php')
-rw-r--r--core/Session.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/Session.php b/core/Session.php
index 54a1e5c9e8..4ac960e7d0 100644
--- a/core/Session.php
+++ b/core/Session.php
@@ -78,6 +78,7 @@ class Piwik_Session extends Zend_Session
try {
Zend_Session::start();
+ register_shutdown_function(array('Zend_Session', 'writeClose'), true);
} catch(Exception $e) {
Piwik::log('Unable to start session: ' . $e->getMessage());
Piwik_ExitWithMessage(Piwik_Translate('General_ExceptionUnableToStartSession'));