Commit 14dd7416 authored by Fabien Potencier's avatar Fabien Potencier

minor #1186 Update session_storage.rst: Add missing lifetime column (andytruong)

This PR was merged into the 2.0.x-dev branch.

Discussion
----------

Update session_storage.rst: Add missing lifetime column

Commits
-------

e85ec346 Update session_storage.rst
parents ef2a6803 e85ec346
......@@ -63,10 +63,11 @@ have to make another database connection, simply pass the getWrappedConnection m
$app->register(new Silex\Provider\SessionServiceProvider());
$app['session.db_options'] = array(
'db_table' => 'session',
'db_id_col' => 'session_id',
'db_data_col' => 'session_value',
'db_time_col' => 'session_time',
'db_table' => 'session',
'db_id_col' => 'session_id',
'db_data_col' => 'session_value',
'db_lifetime_col' => 'session_lifetime',
'db_time_col' => 'session_time',
);
$app['session.storage.handler'] = function () use ($app) {
......@@ -84,6 +85,7 @@ PdoSessionStorage needs a database table with 3 columns:
* ``session_id``: ID column (VARCHAR(255) or larger)
* ``session_value``: Value column (TEXT or CLOB)
* ``session_lifetime``: Lifetime column (INTEGER)
* ``session_time``: Time column (INTEGER)
You can find examples of SQL statements to create the session table in the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment