Skip to content

Document the usage of the php.ini save_path #2399

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 28 additions & 1 deletion reference/configuration/framework.rst
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,34 @@ save_path
**type**: ``string`` **default**: ``%kernel.cache.dir%/sessions``

This determines the argument to be passed to the save handler. If you choose
the default file handler, this is the path where the files are created.
the default file handler, this is the path where the files are created. You can
also set this value to the ``save_path`` of your ``php.ini`` by overriding setting it to
``null``:

.. configuration-block::

.. code-block:: yaml

# app/config/config.yml
framework:
session:
save_path: null

.. code-block:: xml

<!-- app/config/config.xml -->
<framework:config>
<framework:session save-path="null" />
</framework:config>

.. code-block:: php

// app/config/config.php
$container->loadFromExtension('framework', array(
'session' => array(
'save_path' => null,
),
));

templating
~~~~~~~~~~
Expand Down