Commit e85ec346 authored by Andy T's avatar Andy T

Update session_storage.rst

Add missing lifetime column.
parent ef2a6803
...@@ -63,10 +63,11 @@ have to make another database connection, simply pass the getWrappedConnection m ...@@ -63,10 +63,11 @@ have to make another database connection, simply pass the getWrappedConnection m
$app->register(new Silex\Provider\SessionServiceProvider()); $app->register(new Silex\Provider\SessionServiceProvider());
$app['session.db_options'] = array( $app['session.db_options'] = array(
'db_table' => 'session', 'db_table' => 'session',
'db_id_col' => 'session_id', 'db_id_col' => 'session_id',
'db_data_col' => 'session_value', 'db_data_col' => 'session_value',
'db_time_col' => 'session_time', 'db_lifetime_col' => 'session_lifetime',
'db_time_col' => 'session_time',
); );
$app['session.storage.handler'] = function () use ($app) { $app['session.storage.handler'] = function () use ($app) {
...@@ -84,6 +85,7 @@ PdoSessionStorage needs a database table with 3 columns: ...@@ -84,6 +85,7 @@ PdoSessionStorage needs a database table with 3 columns:
* ``session_id``: ID column (VARCHAR(255) or larger) * ``session_id``: ID column (VARCHAR(255) or larger)
* ``session_value``: Value column (TEXT or CLOB) * ``session_value``: Value column (TEXT or CLOB)
* ``session_lifetime``: Lifetime column (INTEGER)
* ``session_time``: Time column (INTEGER) * ``session_time``: Time column (INTEGER)
You can find examples of SQL statements to create the session table in the 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