Skip to content

Commit 2b654f8

Browse files
committed
docs: move notes up
Move to a more appropriate location.
1 parent bd21315 commit 2b654f8

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

user_guide_src/source/libraries/sessions.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -258,12 +258,13 @@ any other kind), you can also use the ``getFlashdata()`` method:
258258

259259
.. literalinclude:: sessions/024.php
260260

261+
.. note:: The ``getFlashdata()`` method returns null if the item cannot be
262+
found.
263+
261264
Or to get an array with all flashdata, simply omit the key parameter:
262265

263266
.. literalinclude:: sessions/025.php
264267

265-
.. note:: The ``getFlashdata()`` method returns null if the item cannot be
266-
found.
267268

268269
If you find that you need to preserve a flashdata variable through an
269270
additional request, you can do so using the ``keepFlashdata()`` method.
@@ -320,13 +321,13 @@ other kind), you can also use the ``getTempdata()`` method:
320321

321322
.. literalinclude:: sessions/033.php
322323

324+
.. note:: The ``getTempdata()`` method returns null if the item cannot be
325+
found.
326+
323327
And of course, if you want to retrieve all existing tempdata:
324328

325329
.. literalinclude:: sessions/034.php
326330

327-
.. note:: The ``getTempdata()`` method returns null if the item cannot be
328-
found.
329-
330331
If you need to remove a tempdata value before it expires, you can directly
331332
unset it from the ``$_SESSION`` array:
332333

0 commit comments

Comments
 (0)