From 885b0343036695ad673fc24ba7682fc155c54036 Mon Sep 17 00:00:00 2001
From: admin 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:set_cookie()
set_cookie($name, $value, $expire, $domain, $path, $prefix);
+Lets you fetch a cookie. The first parameter will contain the name of the cookie you are looking for:
+ +get_cookie('some_cookie');
+
+The function returns FALSE (boolean) if the item you are attempting to retrieve does not exist.
+ +The second optional parameter lets you run the data through the XSS filter. It's enabled by setting the second parameter to boolean TRUE;
+ +get_cookie('some_cookie', TRUE);
+
+
+
+Lets you delete a cookie. Unless you've set a custom path or other values, only the name of the cookie is needed:
+ +delete_cookie("name");
+
+This function is otherwise identical to set_cookie(), 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.
+ +delete_cookie($name, $domain, $path, $prefix)
--
cgit v1.2.3-24-g4f1b