<commit_before>DBSessionStorage
================

Zend Framework Module for storing sessions in database.

## Features
- Easy to use module for getting your sessions into a database
- Uses Zend\Session\SaveHandler\DbTableGateway
- Uses your already available DB Configuration

## Setup

The following steps are necessary to get this module working

  1. Run `php composer.phar require nitecon/zf2-db-session:1.*`
  2. Add `DBSessionStorage` to the enabled modules list
  3. Add the sessions table to your database with:
    <pre class="brush:mysql">
    CREATE TABLE IF NOT EXISTS `sessions` (
        `id` char(32) NOT NULL DEFAULT '',
        `name` varchar(255) NOT NULL,
        `modified` int(11) DEFAULT NULL,
        `lifetime` int(11) DEFAULT NULL,
        `data` text,
        PRIMARY KEY (`id`)
      ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
      </pre>

## Addditional Information

This module assumes that you already have a top level *db* key in your configuration like the following:
<pre class="brush:php">
    return array(
    'db' => array(<commit_msg>Deprecation notice.<commit_after>DBSessionStorage
================

Zend Framework Module for storing sessions in database.

Please note
===========
I will not be actively supporting this module unless there is a huge bug that is reported that causes everything to fail
in lieu of my newer zDbSession module which is based on doctrine, details are available here: https://github.com/Nitecon/zdbsession


## Features
- Easy to use module for getting your sessions into a database
- Uses Zend\Session\SaveHandler\DbTableGateway
- Uses your already available DB Configuration

## Setup

The following steps are necessary to get this module working

  1. Run `php composer.phar require nitecon/zf2-db-session:1.*`
  2. Add `DBSessionStorage` to the enabled modules list
  3. Add the sessions table to your database with:
    <pre class="brush:mysql">
    CREATE TABLE IF NOT EXISTS `sessions` (
        `id` char(32) NOT NULL DEFAULT '',
        `name` varchar(255) NOT NULL,
        `modified` int(11) DEFAULT NULL,
        `lifetime` int(11) DEFAULT NULL,
        `data` text,
        PRIMARY KEY (`id`)
      ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
      </pre>

## Addditional Information

This module assumes that you already have a top level *db* key in your configuration like the following:
<pre class="brush:php">
    return array(
    'db' => array(
{'fraction_non_alphanumeric': 0.09665427509293681, 'fraction_numerical': 0.012391573729863693, 'mean_word_length': 3.587121212121212, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4274507', 'n_tokens_mistral': 701, 'n_tokens_neox': 665, 'n_words': 287}