summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/libraries
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-11-25 22:09:11 +0100
committerAndrey Andreev <narf@bofh.bg>2012-11-25 22:09:11 +0100
commitf5513d6ac0ddc3f6a37df6f370c172cd1b2bfadb (patch)
tree527c4a633d7106cfd179aee6e02e498fbedb6917 /user_guide_src/source/libraries
parent3545102a83a70a42876148037bec05f4bb32913e (diff)
parent3892995d21bc030ef8f6389abe1669d34c954ccd (diff)
Merge pull request #2026 from johnathancroom/keep_flash_data_array
keep_flashdata accepts array
Diffstat (limited to 'user_guide_src/source/libraries')
-rw-r--r--user_guide_src/source/libraries/sessions.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/user_guide_src/source/libraries/sessions.rst b/user_guide_src/source/libraries/sessions.rst
index df1049f82..36c7c1d32 100644
--- a/user_guide_src/source/libraries/sessions.rst
+++ b/user_guide_src/source/libraries/sessions.rst
@@ -191,7 +191,7 @@ set_userdata().
To read a flashdata variable::
$this->session->flashdata('item');
-
+
An array of all flashdata can be retrieved as follows::
$this->session->all_flashdata();
@@ -199,10 +199,12 @@ An array of all flashdata can be retrieved as follows::
If you find that you need to preserve a flashdata variable through an
additional request, you can do so using the keep_flashdata() function.
+You can either pass a single item or an array of flashdata items to keep.
::
$this->session->keep_flashdata('item');
+ $this->session->keep_flashdata(array('item1', 'item2', 'item3'));
Tempdata
========