Skip to content

Commit 6f0aced

Browse files
tvlooyweaverryan
authored andcommitted
Document the usage of the php.ini save_path
1 parent 88341b0 commit 6f0aced

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

reference/configuration/framework.rst

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,34 @@ save_path
243243
**type**: ``string`` **default**: ``%kernel.cache.dir%/sessions``
244244

245245
This determines the argument to be passed to the save handler. If you choose
246-
the default file handler, this is the path where the files are created.
246+
the default file handler, this is the path where the files are created. You can
247+
also set this value to the ``save_path`` of your ``php.ini`` by overriding setting it to
248+
``null``:
249+
250+
.. configuration-block::
251+
252+
.. code-block:: yaml
253+
254+
# app/config/config.yml
255+
framework:
256+
session:
257+
save_path: null
258+
259+
.. code-block:: xml
260+
261+
<!-- app/config/config.xml -->
262+
<framework:config>
263+
<framework:session save-path="null" />
264+
</framework:config>
265+
266+
.. code-block:: php
267+
268+
// app/config/config.php
269+
$container->loadFromExtension('framework', array(
270+
'session' => array(
271+
'save_path' => null,
272+
),
273+
));
247274
248275
templating
249276
~~~~~~~~~~

0 commit comments

Comments
 (0)