delete_cookie (line
124)
Delete a COOKIE
void
delete_cookie
([mixed $name = ''], [string $domain = ''], [string $path = '/'], [string $prefix = ''])
-
mixed
$name
-
string
$domain: the cookie domain. Usually: .yourdomain.com
-
string
$path: the cookie path
-
string
$prefix: the cookie prefix
get_cookie (line
105)
Fetch an item from the COOKIE array
mixed
get_cookie
([string $index = ''], [bool $xss_clean = FALSE])
-
string
$index
-
bool
$xss_clean
set_cookie (line
44)
Set cookie
Accepts six parameter, or you can submit an associative array in the first parameter containing all the values.
void
set_cookie
([mixed $name = ''], [string $value = ''], [string $expire = ''], [string $domain = ''], [string $path = '/'], [string $prefix = ''])
-
mixed
$name
-
string
$value: the value of the cookie
-
string
$expire: the number of seconds until expiration
-
string
$domain: the cookie domain. Usually: .yourdomain.com
-
string
$path: the cookie path
-
string
$prefix: the cookie prefix