Commit 6b81db32 authored by Fabien Potencier's avatar Fabien Potencier

minor #995 Update session.rst (davtwix)

This PR was submitted for the master branch but it was merged into the 1.2 branch instead (closes #995).

Discussion
----------

Update session.rst

May be a bug, but Sessions expire after 30 minutes (or less ?)
To have the default behavior describe in documentation, you must set cookie_lifetime to 0

$app->register(new Silex\Provider\UrlGeneratorServiceProvider(), array(
    'session.storage.options' => array(
        'cookie_lifetime' => 0
        )
    )
);

Commits
-------

0e553e36 Update session.rst
parents 5ae31dae 0e553e36
...@@ -26,8 +26,7 @@ Parameters ...@@ -26,8 +26,7 @@ Parameters
* **cookie_secure**: Cookie secure (HTTPS) * **cookie_secure**: Cookie secure (HTTPS)
* **cookie_httponly**: Whether the cookie is http only * **cookie_httponly**: Whether the cookie is http only
However, all of these are optional. Sessions last as long as the browser is However, all of these are optional. Default Sessions life time is 1800 seconds (30 minutes). To override this, set the ``lifetime`` option.
open. To override this, set the ``lifetime`` option.
For a full list of available options, read the `PHP For a full list of available options, read the `PHP
<http://php.net/session.configuration>`_ official documentation. <http://php.net/session.configuration>`_ official documentation.
......
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