File tree Expand file tree Collapse file tree
user_guide_src/source/libraries Expand file tree Collapse file tree Original file line number Diff line number Diff 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+
261264Or 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
268269If you find that you need to preserve a flashdata variable through an
269270additional 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+
323327And 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-
330331If you need to remove a tempdata value before it expires, you can directly
331332unset it from the ``$_SESSION `` array:
332333
You can’t perform that action at this time.
0 commit comments