Static Public Member Functions |
static | set ($name, $value=NULL, $expire=NULL, $path=NULL, $domain=NULL, $secure=NULL, $httponly=NULL, $prefix=NULL) |
| Sets a cookie with the given parameters.
|
static | get ($name, $prefix=NULL, $xss_clean=FALSE) |
| Fetch a cookie value, using the Input library.
|
static | delete ($name, $path=NULL, $domain=NULL, $prefix=NULL) |
| Nullify and unset a cookie.
|
Member Function Documentation
static cookie::delete |
( |
|
$name, |
|
|
|
$path = NULL , |
|
|
|
$domain = NULL , |
|
|
|
$prefix = NULL |
|
) |
| |
|
static |
Nullify and unset a cookie.
- Parameters
-
string | cookie name |
string | URL path |
string | URL domain |
string | collision-prevention prefix |
- Returns
- boolean
static cookie::get |
( |
|
$name, |
|
|
|
$prefix = NULL , |
|
|
|
$xss_clean = FALSE |
|
) |
| |
|
static |
Fetch a cookie value, using the Input library.
- Parameters
-
string | cookie name |
string | collision-prevention prefix |
boolean | use XSS cleaning on the value |
- Returns
- string
static cookie::set |
( |
|
$name, |
|
|
|
$value = NULL , |
|
|
|
$expire = NULL , |
|
|
|
$path = NULL , |
|
|
|
$domain = NULL , |
|
|
|
$secure = NULL , |
|
|
|
$httponly = NULL , |
|
|
|
$prefix = NULL |
|
) |
| |
|
static |
Sets a cookie with the given parameters.
- Parameters
-
string | cookie name or array of config options |
string | cookie value |
integer | number of seconds before the cookie expires |
string | URL path to allow |
string | URL domain to allow |
boolean | HTTPS only |
boolean | HTTP only (requires PHP 5.2 or higher) |
string | collision-prevention prefix |
- Returns
- boolean
The documentation for this class was generated from the following file: