Thanks to visit codestin.com
Credit goes to github.com

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)