PHPackages                             gabriel403/g403-session-db - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. gabriel403/g403-session-db

ActiveLibrary[Database &amp; ORM](/categories/database)

gabriel403/g403-session-db
==========================

Extension to ZF2 to allow sessions to be stored in the database.

1.0.3(12y ago)15814BSD-3-ClausePHPPHP &gt;=5.3.3

Since May 10Pushed 12y ago1 watchersCompare

[ Source](https://github.com/gabriel403/G403SessionDb)[ Packagist](https://packagist.org/packages/gabriel403/g403-session-db)[ Docs](https://github.com/gabriel403/G403SessionDb)[ RSS](/packages/gabriel403-g403-session-db/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (5)Used By (0)

G403SessionDb
=============

[](#g403sessiondb)

Version 0.0.1 Created by Gabriel Baker (Gabriel403)

Introduction
------------

[](#introduction)

G403SessionDb is a session storage module for Zend Framework 2. Out of the box, G403SessionDb works with Zend\\Db. G403SessionDb provides the foundations for adding sessions into the db for your ZF2 site. It is designed to be very simple and easily to extend.

Installation
------------

[](#installation)

### Main Setup

[](#main-setup)

#### By cloning project

[](#by-cloning-project)

1. Clone this project into your `./vendor/` directory.

#### With composer

[](#with-composer)

1. Add this project in your composer.json:

    ```
    "require": {
        "gabriel403/g403-session-db": "dev-master",
    }
    ```
2. Now tell composer to download G403SessionDb by running the command:

    ```
    $ php composer.phar update
    ```

OR

```
$ php composer.phar require gabriel403/g403-session-db
```

And type `dev-master` when asked for a version to pick.

#### Post installation

[](#post-installation)

1. Enabling it in your `application.config.php`file.

    ```
