Skip to content

Commit b2ef983

Browse files
committed
Reworded the docs about storing sessions in database
1 parent de1f9a8 commit b2ef983

File tree

6 files changed

+535
-314
lines changed

6 files changed

+535
-314
lines changed

_build/redirection_map

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,3 +456,5 @@
456456
/templating/namespaced_paths /templates
457457
/templating/embedding_controllers /templates
458458
/templating/inheritance /templates
459+
/doctrine/pdo_session_storage /session/database
460+
/doctrine/mongodb_session_storage /session/database

doctrine/mongodb_session_storage.rst

Lines changed: 0 additions & 31 deletions
This file was deleted.

doctrine/pdo_session_storage.rst

Lines changed: 0 additions & 275 deletions
This file was deleted.

reference/configuration/framework.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,6 +1154,8 @@ The service id used for session storage. The ``session.storage`` service
11541154
alias will be set to this service id. This class has to implement
11551155
:class:`Symfony\\Component\\HttpFoundation\\Session\\Storage\\SessionStorageInterface`.
11561156

1157+
.. _config-framework-session-handler-id:
1158+
11571159
handler_id
11581160
..........
11591161

@@ -1162,10 +1164,7 @@ handler_id
11621164
The service id used for session storage. The default ``null`` value means to use
11631165
the native PHP session mechanism. Set it to ``'session.handler.native_file'`` to
11641166
let Symfony manage the sessions itself using files to store the session
1165-
metadata.
1166-
1167-
If you prefer to make Symfony store sessions in a database read
1168-
:doc:`/doctrine/pdo_session_storage`.
1167+
metadata. You can also :doc:`store sessions in a database </session/database>`.
11691168

11701169
.. _name:
11711170

session.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,8 @@ session metadata files:
121121
]);
122122
123123
Check out the Symfony config reference to learn more about the other available
124-
:ref:`Session configuration options <config-framework-session>`. Also, if you
125-
prefer to store session metadata in a database instead of the filesystem,
126-
check out this article: :doc:`/doctrine/pdo_session_storage`.
124+
:ref:`Session configuration options <config-framework-session>`. You can also
125+
:doc:`store sessions in a database </session/database>`.
127126

128127
Basic Usage
129128
-----------
@@ -219,7 +218,7 @@ More about Sessions
219218
.. toctree::
220219
:maxdepth: 1
221220

222-
/doctrine/pdo_session_storage
221+
/session/database
223222
session/locale_sticky_session
224223
session/php_bridge
225224
session/proxy_examples

0 commit comments

Comments
 (0)