summaryrefslogtreecommitdiffstats
path: root/user_guide
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2007-08-07 21:34:09 +0200
committerDerek Allard <derek.allard@ellislab.com>2007-08-07 21:34:09 +0200
commit0debd35d9bf4d420ca8ac18cdac629f4fb40beb1 (patch)
treebfcee406dfe39b88f3a947f7a3d7bb40ba871955 /user_guide
parent92a17b18ef42ee310234cdbe57374e6a59169bb9 (diff)
documented unset_userdata() in session user guide
Diffstat (limited to 'user_guide')
-rw-r--r--user_guide/libraries/sessions.html5
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-&gt;session-&gt;unset_userdata('item');</code></p>
+<h2>Destroying a Session</h2>
<p>To clear the current session: </p>
<code>$this-&gt;session-&gt;sess_destroy();</code>
<h2>Session Preferences</h2>