diff --git a/session/database.rst b/session/database.rst
index e62cf8a11e1..d77d8289ebb 100644
--- a/session/database.rst
+++ b/session/database.rst
@@ -19,14 +19,60 @@ installed and configured the `phpredis extension`_.
You have two different options to use Redis to store sessions:
-(1) The first PHP-based option is to configure Redis session handler directly in
-the server ``php.ini`` file:
+(1) The first PHP-based option is to use the ``session.handler.native_redis`` service as
+``handler_id`` to let the extension manage the sessions itself. It is important to specify
+a ``save_path``, which defines the server where the extension will store the session:
-.. code-block:: ini
+.. configuration-block::
+
+ .. code-block:: yaml
+
+ # config/packages/framework.yaml
+ framework:
+ session:
+ # ...
+ handler_id: 'session.handler.native_redis'
+ save_path: 'tcp://192.168.0.178:6379?auth=REDIS_PASSWORD'
+
+ .. code-block:: xml
+
+
+
+
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: