summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/libraries
diff options
context:
space:
mode:
Diffstat (limited to 'user_guide_src/source/libraries')
-rw-r--r--user_guide_src/source/libraries/sessions.rst8
1 files changed, 6 insertions, 2 deletions
diff --git a/user_guide_src/source/libraries/sessions.rst b/user_guide_src/source/libraries/sessions.rst
index 6395c0622..91dafdee8 100644
--- a/user_guide_src/source/libraries/sessions.rst
+++ b/user_guide_src/source/libraries/sessions.rst
@@ -203,12 +203,16 @@ session data array::
$this->session->unset_userdata('some_name');
-This method also accepts an associative array of items to unset::
+This method also accepts an array of item keys to unset::
- $array_items = array('username' => '', 'email' => '');
+ $array_items = array('username', 'email');
$this->session->unset_userdata($array_items);
+.. note:: In previous versions, the ``unset_userdata()`` method used
+ to accept an associative array of ``key => 'dummy value'``
+ pairs. This is no longer supported.
+
Flashdata
=========