diff options
author | Johnathan Croom <johnathancroom@gmail.com> | 2012-11-24 02:32:46 +0100 |
---|---|---|
committer | Johnathan Croom <johnathancroom@gmail.com> | 2012-11-24 02:32:46 +0100 |
commit | 4beca5c9b64ba7bd1622e5c01666491f02cfa6db (patch) | |
tree | f6ffddaf5b69e265b4b0279cca67c866d30de011 /user_guide_src | |
parent | a815dbf595397743dacf4aef2bfbab5d19448797 (diff) |
keep_flashdata accepts array
Diffstat (limited to 'user_guide_src')
-rw-r--r-- | user_guide_src/source/libraries/sessions.rst | 4 |
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 ee7fb0b1c..aecad3164 100644 --- a/user_guide_src/source/libraries/sessions.rst +++ b/user_guide_src/source/libraries/sessions.rst @@ -195,7 +195,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(); @@ -203,10 +203,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 ======== |