diff options
author | robocoder <anthon.pang@gmail.com> | 2011-06-25 17:55:00 +0400 |
---|---|---|
committer | robocoder <anthon.pang@gmail.com> | 2011-06-25 17:55:00 +0400 |
commit | f72c21a37767d2beec677eb97f14a1586b7568b2 (patch) | |
tree | 32f9584525242af4dc23bf3e81071a0becca7a37 /core/Session.php | |
parent | af5275f8894153ca32aca8d6b9c04aa342f95830 (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.php | 1 |
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')); |