Skip to content

Commit c1051db

Browse files
committed
Reworded the docs about storing sessions in database
1 parent db2641a commit c1051db

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
@@ -460,3 +460,5 @@
460460
/testing/doctrine /testing/database
461461
/doctrine/lifecycle_callbacks /doctrine/events
462462
/doctrine/event_listeners_subscribers /doctrine/events
463+
/doctrine/pdo_session_storage /session/database
464+
/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
@@ -1172,6 +1172,8 @@ The service id used for session storage. The ``session.storage`` service
11721172
alias will be set to this service id. This class has to implement
11731173
:class:`Symfony\\Component\\HttpFoundation\\Session\\Storage\\SessionStorageInterface`.
11741174

1175+
.. _config-framework-session-handler-id:
1176+
11751177
handler_id
11761178
..........
11771179

@@ -1180,10 +1182,7 @@ handler_id
11801182
The service id used for session storage. The default ``null`` value means to use
11811183
the native PHP session mechanism. Set it to ``'session.handler.native_file'`` to
11821184
let Symfony manage the sessions itself using files to store the session
1183-
metadata.
1184-
1185-
If you prefer to make Symfony store sessions in a database read
1186-
:doc:`/doctrine/pdo_session_storage`.
1185+
metadata. You can also :doc:`store sessions in a database </session/database>`.
11871186

11881187
.. _name:
11891188

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)