Commit db985618 authored by Igor Wiedler's avatar Igor Wiedler

[docs] More detailed documentation for session.storage.options

parent ede0f9d1
...@@ -10,6 +10,19 @@ Parameters ...@@ -10,6 +10,19 @@ Parameters
* **session.storage.options**: An array of options that is passed to the * **session.storage.options**: An array of options that is passed to the
constructor of the ``session.storage`` service. constructor of the ``session.storage`` service.
In case of the default ``NativeSessionStorage``, the possible options are:
* **name**: The cookie name (_SESS by default)
* **id**: The session id (null by default)
* **lifetime**: Cookie lifetime
* **path**: Cookie path
* **domain**: Cookie domain
* **secure**: Cookie secure (HTTPS)
* **httponly**: Whether the cookie is http only
However, all of these are optional. Sessions last as long as the browser
is open. To override this, set the ``lifetime`` option.
Services Services
-------- --------
...@@ -17,7 +30,8 @@ Services ...@@ -17,7 +30,8 @@ Services
<http://api.symfony.com/2.0/Symfony/Component/HttpFoundation/Session.html>`_. <http://api.symfony.com/2.0/Symfony/Component/HttpFoundation/Session.html>`_.
* **session.storage**: A service that is used for persistence of the * **session.storage**: A service that is used for persistence of the
session data. session data. Defaults to a `NativeSessionStorage
<http://api.symfony.com/2.0/Symfony/Component/HttpFoundation/SessionStorage/NativeSessionStorage.html`_.
Registering Registering
----------- -----------
......
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