diff options
author | Derek Allard <derek.allard@ellislab.com> | 2007-08-07 21:34:09 +0200 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2007-08-07 21:34:09 +0200 |
commit | 0debd35d9bf4d420ca8ac18cdac629f4fb40beb1 (patch) | |
tree | bfcee406dfe39b88f3a947f7a3d7bb40ba871955 /user_guide | |
parent | 92a17b18ef42ee310234cdbe57374e6a59169bb9 (diff) |
documented unset_userdata() in session user guide
Diffstat (limited to 'user_guide')
-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>
|