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:
Diffstat (limited to 'core/Session.php')
-rw-r--r--core/Session.php19
1 files changed, 12 insertions, 7 deletions
diff --git a/core/Session.php b/core/Session.php
index 4c09c3b6cb..641334676c 100644
--- a/core/Session.php
+++ b/core/Session.php
@@ -100,13 +100,7 @@ class Session extends Zend_Session
@ini_set('session.serialize_handler', 'php_serialize');
}
- $config = array(
- 'name' => Common::prefixTable(DbTable::TABLE_NAME),
- 'primary' => 'id',
- 'modifiedColumn' => 'modified',
- 'dataColumn' => 'data',
- 'lifetimeColumn' => 'lifetime',
- );
+ $config = self::getDbTableConfig();
$saveHandler = new DbTable($config);
if ($saveHandler) {
@@ -226,4 +220,15 @@ class Session extends Zend_Session
Common::sendHeader($headerStr);
return $headerStr;
}
+
+ public static function getDbTableConfig()
+ {
+ return array(
+ 'name' => Common::prefixTable(DbTable::TABLE_NAME),
+ 'primary' => 'id',
+ 'modifiedColumn' => 'modified',
+ 'dataColumn' => 'data',
+ 'lifetimeColumn' => 'lifetime',
+ );
+ }
}