File tree Expand file tree Collapse file tree 4 files changed +48
-0
lines changed Expand file tree Collapse file tree 4 files changed +48
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ The Cookbook
25
25
debugging
26
26
event_dispatcher/index
27
27
request/index
28
+ session/index
28
29
profiler/index
29
30
web_services/index
30
31
symfony1
Original file line number Diff line number Diff line change 102
102
103
103
* :doc:` /cookbook/request/mime_type`
104
104
105
+ * :doc:` /cookbook/session/index`
106
+
107
+ * :doc:` /cookbook/session/php_bridge`
108
+
105
109
* :doc:` /cookbook/routing/index`
106
110
107
111
* :doc:` /cookbook/routing/scheme`
Original file line number Diff line number Diff line change
1
+ Sessions
2
+ ========
3
+
4
+ .. toctree ::
5
+ :maxdepth: 2
6
+
7
+ php_bridge
Original file line number Diff line number Diff line change
1
+ .. index ::
2
+ single: Sessions
3
+
4
+ Bridge a legacy application with Symfony Sessions
5
+ --------------------------------------------------------
6
+
7
+ .. versionadded :: 2.3
8
+ Added ability to integrate with a legacy PHP session
9
+
10
+ You may take advantage of the PHP Bridge Session when integrating
11
+ a legacy application into the Symfony Full Stack Framework when it
12
+ may not be possible to avoid the legacy application starting the
13
+ session with ``session_start() ``
14
+
15
+ If the application has sets it's own PHP save handler, you can
16
+ specify null for the ``handler_id ``:
17
+
18
+ .. code-block :: yml
19
+
20
+ framework:
21
+ session:
22
+ storage_id: session.storage.php_bridge
23
+ handler_id: ~
24
+
25
+ Otherwise, if the problem is simply that you cannot avoid the application
26
+ starting the session with ``session_start() `` but you can still make use of
27
+ a Symfony based session save handler, you can specify the save handle
28
+ as in the example below:
29
+
30
+ .. code-block :: yml
31
+
32
+ framework:
33
+ session:
34
+ storage_id: session.storage.php_bridge
35
+ handler_id: session.handler.native_file
36
+
You can’t perform that action at this time.
0 commit comments