installed zf and zend session
composer create-project -n -sdev zendframework/skeleton-application path/to/install
composer require zendframework/zend-session
and followed the instructions from https://github.com/zendframework/zend-session/blob/master/doc/book/manager.md
exception from php internal server
PHP Fatal error: Uncaught Zend\ServiceManager\Exception\ServiceNotCreatedException: Configuration is missing a "session_config" key, or the value of that key is not an array in (...)vendor/zendframework/zend-session/src/Service/SessionConfigFactory.php:40
Stack trace:
#0 (...)vendor/zendframework/zend-servicemanager/src/ServiceManager.php(750): Zend\Session\Service\SessionConfigFactory->__invoke(Object(Zend\ServiceManager\ServiceManager), 'Zend\\Session\\Co...', NULL)
#1 (...)vendor/zendframework/zend-servicemanager/src/ServiceManager.php(198): Zend\ServiceManager\ServiceManager->doCreate('Zend\\Session\\Co...')
#2 (...)vendor/zendframework/zend-session/src/Service/SessionManagerFactory.php(74): Zend\ServiceManager\ServiceManager->get('Zend\\Session\\Co...')
#3 (...)vendor/zendframework/zend-servicemanager/src/ServiceManager.php(750): Zend\Session\Service\SessionManagerFactory->__invoke(Object in (...)vendor/zendframework/zend-session/src/Service/SessionConfigFactory.php on line 40
HP Fatal error: Uncaught Zend\ServiceManager\Exception\ServiceNotCreatedException: Configuration is missing a "session_config" key, or the value of that key is not an array in (...)vendor/zendframework/zend-session/src/Service/SessionConfigFactory.php:40
Stack trace:
#0 (...)vendor/zendframework/zend-servicemanager/src/ServiceManager.php(750): Zend\Session\Service\SessionConfigFactory->__invoke(Object(Zend\ServiceManager\ServiceManager), 'Zend\\Session\\Co...', NULL)
#1 (...)vendor/zendframework/zend-servicemanager/src/ServiceManager.php(198): Zend\ServiceManager\ServiceManager->doCreate('Zend\\Session\\Co...')
#2 (...)vendor/zendframework/zend-session/src/Service/SessionManagerFactory.php(74): Zend\ServiceManager\ServiceManager->get('Zend\\Session\\Co...')
#3 (...)vendor/zendframework/zend-servicemanager/src/ServiceManager.php(750): Zend\Session\Service\SessionManagerFactory->__invoke(Object in (...)vendor/zendframework/zend-session/src/Service/SessionConfigFactory.php on line 40
exception from apache
( ! ) Fatal error: Uncaught Zend\ServiceManager\Exception\ServiceNotCreatedException: Configuration is missing a "session_config" key, or the value of that key is not an array in /home/rodrigo/sites/bffc/rh/zf3/vendor/zendframework/zend-session/src/Service/SessionConfigFactory.php on line 40
( ! ) Zend\ServiceManager\Exception\ServiceNotCreatedException: Configuration is missing a "session_config" key, or the value of that key is not an array in /home/rodrigo/sites/bffc/rh/zf3/vendor/zendframework/zend-session/src/Service/SessionConfigFactory.php on line 40
Call Stack
# Time Memory Function Location
1 0.0002 357200 {main}( ) .../index.php:0
2 0.0027 369720 Zend\Mvc\Application::init( ) .../index.php:40
3 0.0287 1117424 Zend\Mvc\Application->bootstrap( ) .../Application.php:273
4 0.0334 1308184 Zend\EventManager\EventManager->triggerEvent( ) .../Application.php:161
5 0.0334 1308184 Zend\EventManager\EventManager->triggerListeners( ) .../EventManager.php:143
6 0.0407 1508440 Application\Module->onBootstrap( ) .../EventManager.php:271
7 0.0408 1510360 Application\Module->bootstrapSession( ) .../Module.php:32
8 0.0408 1510360 Zend\ServiceManager\ServiceManager->get( ) .../Module.php:42
9 0.0408 1510360 Zend\ServiceManager\ServiceManager->doCreate( ) .../ServiceManager.php:198