Skip to content

Commit d1dbd7e

Browse files
authored
Merge pull request #7320 from abrothman/patch-1
Update sessions.rst
2 parents 8bc41da + 280d830 commit d1dbd7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

en/development/sessions.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,8 @@ A basic example of session usage in controllers, views and cells would be::
339339
$session = $this->request->getSession();
340340
$name = $session->read('User.name');
341341

342-
In helpers you can use ``$this->getView()->getRequest()`` to get the request object
343-
and in component you can use ``$this->getController()->getRequest()``.
342+
In helpers, use ``$this->getView()->getRequest()`` to get the request object;
343+
In components, use ``$this->getController()->getRequest()``.
344344

345345
Reading & Writing Session Data
346346
==============================

0 commit comments

Comments
 (0)