Skip to content

Commit d92c522

Browse files
committed
minor #3769 Updated references to new Session() (scottwarren)
This PR was submitted for the 2.4 branch but it was merged into the 2.3 branch instead (closes #3769). Discussion ---------- Updated references to new Session() If you use new Session(), you get a 500 error, with the following message: ```log Failed to start the session: already started by PHP. ``` | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | I tested 2.4.2, but it most likely will be earlier version as well | Fixed tickets | none Commits ------- fa86275 Updated warning for Sessions 4e06f0e fixed spaces and 72 char line limit 3624fec Updated grammer issues in caution section b2ac5bc fixed typo 6e6b19f Fixed typo and removed extra space df4ef14 Added extra new lines 275dd97 Added Caution note a64f274 Removed use command 490efdc Updated references to new Session()
2 parents 7288a33 + 0b8747e commit d92c522

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

components/http_foundation/sessions.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ object-oriented interface using a variety of session storage drivers.
1212
Sessions are used via the simple :class:`Symfony\\Component\\HttpFoundation\\Session\\Session`
1313
implementation of :class:`Symfony\\Component\\HttpFoundation\\Session\\SessionInterface` interface.
1414

15+
.. caution::
16+
17+
Make sure your PHP session isn't already started before using the Session
18+
class. If you have a legacy session system that starts your session, see
19+
http://symfony.com/doc/current/components/http_foundation/session_php_bridge.html
20+
1521
Quick example::
1622

1723
use Symfony\Component\HttpFoundation\Session\Session;

0 commit comments

Comments
 (0)