Skip to content

Commit a77e3d0

Browse files
committed
Merge pull request symfony#2856 from drak/patch-1
Clarify php session bridge cookbook.
2 parents f5e9cd1 + cefeeb8 commit a77e3d0

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

cookbook/session/php_bridge.rst

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,14 @@ the example below:
3333
storage_id: session.storage.php_bridge
3434
handler_id: session.handler.native_file
3535
36-
For more details, see :doc:`/components/http_foundation/session_php_bridge`.
36+
.. note::
37+
38+
If the legacy application requires it's own session save-handler, do not
39+
override this, rather set ``handler_id: ~``. Note that a save handler cannot
40+
be changed once the session has been started. If the application starts the
41+
session before Symfony initializes the save-handler will have already been
42+
set. You will need ``handler_id: ~``. Only override the save-handler if you
43+
are sure the legacy application can use the Symfony save-handler without
44+
side effects and that the session has not been started before Symfony inializes.
45+
46+
For more details, see :doc:`/components/http_foundation/session_php_bridge`.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

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:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy