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-19 15:42:54 +0400
committerrobocoder <anthon.pang@gmail.com>2011-06-19 15:42:54 +0400
commit47a0d01f7a691fcd95140a955c9ea8420c609942 (patch)
tree33efa4b69bc26abf39868738049dc3509e8ebba0 /core/Session.php
parent1d6a4e2e930c6cae3194bc57d0b8f0a812b3fe08 (diff)
fixes #2491
* couldn't reproduce it, but description matches ZF-7611, ZF-7171 - exception thrown * also, http://forum.piwik.org/read.php?5,78021 - ini_set disabled * quickly sanity tested on 5.1.3, 5.2.0, and 5.3.6 Note to self: there's a ZF1 memcache savehandler in ZF-10561 git-svn-id: http://dev.piwik.org/svn/trunk@4941 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/Session.php')
-rw-r--r--core/Session.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/Session.php b/core/Session.php
index 216f00ffc7..54a1e5c9e8 100644
--- a/core/Session.php
+++ b/core/Session.php
@@ -55,14 +55,18 @@ class Piwik_Session extends Zend_Session
$currentSaveHandler = ini_get('session.save_handler');
if(in_array($currentSaveHandler, array('user', 'mm', 'files')))
{
+ $db = Zend_Registry::get('db');
+ $db->getConnection();
+
$config = array(
'name' => Piwik_Common::prefixTable('session'),
'primary' => 'id',
'modifiedColumn' => 'modified',
'dataColumn' => 'data',
'lifetimeColumn' => 'lifetime',
- 'db' => Zend_Registry::get('db'),
+ 'db' => $db,
);
+
self::setSaveHandler(new Zend_Session_SaveHandler_DbTable($config));
}