diff --git a/module/VuFind/config/module.config.php b/module/VuFind/config/module.config.php
index a0697ab75bebd0122fa991df51ac02b7a67ed981..c9503d8d92d7da63b012f3f7406d44323f0485d3 100644
--- a/module/VuFind/config/module.config.php
+++ b/module/VuFind/config/module.config.php
@@ -107,6 +107,20 @@ $config = array(
             'sessionmanager' => 'Zend\Session\SessionManager',
         )
     ),
+    'session_handler_manager' => array(
+        'abstract_factories' => array('VuFind\Session\PluginFactory'),
+        'invokables' => array(
+            'database' => 'VuFind\Session\Database',
+            'file' => 'VuFind\Session\File',
+            'memcache' => 'VuFind\Session\Memcache',
+        ),
+        'aliases' => array(
+            // for legacy 1.x compatibility
+            'filesession' => 'File',
+            'memcachesession' => 'Memcache',
+            'mysqlsession' => 'Database',
+        ),
+    ),
     'translator' => array(),
     'view_manager' => array(
         'display_not_found_reason' => APPLICATION_ENV == 'development',
diff --git a/module/VuFind/src/VuFind/Bootstrap.php b/module/VuFind/src/VuFind/Bootstrap.php
index 361b4de6c4272e279ebde6444915539afd132dd2..73562479761fc4f5dbc17eef52ebab08b0fbdbeb 100644
--- a/module/VuFind/src/VuFind/Bootstrap.php
+++ b/module/VuFind/src/VuFind/Bootstrap.php
@@ -84,25 +84,14 @@ class Bootstrap
      */
     protected function initPluginManagers()
     {
-        $serviceManager = $this->event->getApplication()->getServiceManager();
-        $config = new ServiceManagerConfig(
-            array(
-                'abstract_factories' => array('VuFind\Session\PluginFactory'),
-                'invokables' => array(
-                    'database' => 'VuFind\Session\Database',
-                    'file' => 'VuFind\Session\File',
-                    'memcache' => 'VuFind\Session\Memcache',
-                ),
-                'aliases' => array(
-                    // for legacy 1.x compatibility
-                    'filesession' => 'File',
-                    'memcachesession' => 'Memcache',
-                    'mysqlsession' => 'Database',
-                ),
-            )
-        );
+        $app = $this->event->getApplication();
+        $serviceManager = $app->getServiceManager();
+        $config = $app->getConfig();
+
         $serviceManager->setService(
-            'SessionHandlerManager', new \VuFind\Session\PluginManager($config)
+            'SessionHandlerManager', new \VuFind\Session\PluginManager(
+                new ServiceManagerConfig($config['session_handler_manager'])
+            )
         );
     }