Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
Silex
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
Silex
Commits
db985618
Commit
db985618
authored
May 06, 2011
by
Igor Wiedler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[docs] More detailed documentation for session.storage.options
parent
ede0f9d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
doc/extensions/session.rst
doc/extensions/session.rst
+15
-1
No files found.
doc/extensions/session.rst
View file @
db985618
...
@@ -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
-----------
-----------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment