summaryrefslogtreecommitdiffstats
path: root/user_guide/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'user_guide/helpers')
-rw-r--r--user_guide/helpers/cookie_helper.html26
1 files changed, 25 insertions, 1 deletions
diff --git a/user_guide/helpers/cookie_helper.html b/user_guide/helpers/cookie_helper.html
index 3e89df74d..9c17cdd5c 100644
--- a/user_guide/helpers/cookie_helper.html
+++ b/user_guide/helpers/cookie_helper.html
@@ -76,7 +76,7 @@ Cookie Helper
<h2>set_cookie()</h2>
<p>Sets a cookie containing the values you specify. There are two ways to pass information this function so that a cookie can be set:
-Arrray Method, and Discreet Parameters:</p>
+Array Method, and Discreet Parameters:</p>
<h4>Array Method</h4>
@@ -112,6 +112,30 @@ zero the cookie will only last as long as the browser is open.</p>
<code>set_cookie($name, $value, $expire, $domain, $path, $prefix);</code>
+<h2>get_cookie()</h2>
+
+<p>Lets you fetch a cookie. The first parameter will contain the name of the cookie you are looking for:</p>
+
+<code>get_cookie('some_cookie');</code>
+
+<p>The function returns FALSE (boolean) if the item you are attempting to retrieve does not exist.</p>
+
+<p>The second optional parameter lets you run the data through the XSS filter. It's enabled by setting the second parameter to boolean TRUE;</p>
+
+<code>get_cookie('some_cookie', TRUE);</code>
+
+
+
+<h2>delete_cookie()</h2>
+
+<p>Lets you delete a cookie. Unless you've set a custom path or other values, only the name of the cookie is needed:</p>
+
+<code>delete_cookie("name");</code>
+
+<p>This function is otherwise identical to <dfn>set_cookie()</dfn>, except that it does not have the value and expiration parameters. You can submit an array
+of values in the first parameter or you can set discreet parameters.</p>
+
+<code>delete_cookie($name, $domain, $path, $prefix)</code>
</div>