We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7288a33 commit 93fb45dCopy full SHA for 93fb45d
components/http_foundation/sessions.rst
@@ -16,7 +16,7 @@ Quick example::
16
17
use Symfony\Component\HttpFoundation\Session\Session;
18
19
- $session = new Session();
+ $session = $this->getRequest()->getSession();
20
$session->start();
21
22
// set and get session attributes
@@ -291,7 +291,7 @@ Examples of setting multiple flashes::
291
292
293
294
295
296
297
// add flash messages
0 commit comments