diff options
author | Andrey Andreev <narf@devilix.net> | 2015-02-02 10:45:11 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2015-02-02 10:45:11 +0100 |
commit | b339df394b97b640df4a8745d16b94b4ee00e91e (patch) | |
tree | 2b7de3f95cacc97f9a28f77676f41728b9addb30 /user_guide_src/source/installation/upgrade_300.rst | |
parent | 969153efd0253e025ab1ad02c693816f79865e58 (diff) |
[ci skip] Document CI_Session::unset_userdata() BC break
Diffstat (limited to 'user_guide_src/source/installation/upgrade_300.rst')
-rw-r--r-- | user_guide_src/source/installation/upgrade_300.rst | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/user_guide_src/source/installation/upgrade_300.rst b/user_guide_src/source/installation/upgrade_300.rst index 497dc7263..78333c9a3 100644 --- a/user_guide_src/source/installation/upgrade_300.rst +++ b/user_guide_src/source/installation/upgrade_300.rst @@ -168,6 +168,21 @@ that you should make: `Session Metadata <../libraries/sessions.html#accessing-session-metadata>`_ if your application relies on those values. + - Check ``unset_userdata()`` usage + + Previously, this method used to accept an associative array of + ``'key' => 'dummy value'`` pairs for unsetting multiple keys. That + however makes no sense and you now have to pass *only* the keys, as + the elements of an array. + + :: + + // Old + $this->session->unset_userdata(array('item' => '', 'item2' => '')); + + // New + $this->session->unset_userdata(array('item', 'item2')); + Finally, if you have written a Session extension, you must now move it to the *application/libraries/Session/* directory, although chances are that it will now also have to be re-factored. |