diff options
Diffstat (limited to 'user_guide/libraries')
-rw-r--r-- | user_guide/libraries/sessions.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/user_guide/libraries/sessions.html b/user_guide/libraries/sessions.html index 68744992b..66b258b41 100644 --- a/user_guide/libraries/sessions.html +++ b/user_guide/libraries/sessions.html @@ -211,7 +211,10 @@ Once you have created your database table you can enable the database option in do not need to write your own routine to do it.</p>
-<h2>Destroying a Session </h2>
+<h2>Removing Session Data </h2>
+<p>To remove a single item from the session</p>
+<p><code>$this->session->unset_userdata('item');</code></p>
+<h2>Destroying a Session</h2>
<p>To clear the current session: </p>
<code>$this->session->sess_destroy();</code>
<h2>Session Preferences</h2>
|