BgvSessionDoctrine is a ZF2 module.
BgvSessionDoctrine allow sessions to be stored in the database (via DoctrineORM). Use G403SessionDb module if you use Zend\Db for database access.
Use composer
to install this module.
{
...
"repositories": [
...
{
"type": "vcs",
"url": "https://github.com/h15/bgv-session-doctrine.git"
},
...
],
...
"require": {
...
"bugov/bgv-session-doctrine": "1.*",
...
},
...
}
Create session
table into database by command
./path/to/bin/doctrine-module orm:schema-tool:update --force
Copy file ./vendor/bugov/bgv-session-doctrine/config/bgv-session-doctrine.global.php.dist
to
./config/autoload/bgv-session-doctrine.global.php
.
Copyright (C) 2013, Georgy Bazhukov.
This program is free software, you can redistribute it and/or modify it under the terms of the Artistic License version 2.0.