Cookie
class Cookie
A set of static methods for manipulating cookies.
Config options
| report_errors | boolean |
Methods
static Cookie_Backend
get_inst()
Fetch the current instance of the cookie backend
static
set(string $name, mixed $value, int $expiry = 90, string $path = null, string $domain = null, boolean $secure = false, boolean $httpOnly = true)
Set a cookie variable
static string|null
get(string $name, boolean $includeUnsent = true)
Get the cookie value by name
static array
get_all(boolean $includeUnsent = true)
Get all the cookies
static
static
force_expiry($name, $path = null, $domain = null, $secure = false, $httpOnly = true)
No description
static
static
Details
at line 21
static Cookie_Backend
get_inst()
Fetch the current instance of the cookie backend
at line 36
static
set(string $name, mixed $value, int $expiry = 90, string $path = null, string $domain = null, boolean $secure = false, boolean $httpOnly = true)
Set a cookie variable
at line 50
static string|null
get(string $name, boolean $includeUnsent = true)
Get the cookie value by name
at line 60
static array
get_all(boolean $includeUnsent = true)
Get all the cookies
at line 67
static
forceExpiry($name, $path = null, $domain = null)
deprecated
deprecated
at line 78
static
force_expiry($name, $path = null, $domain = null, $secure = false, $httpOnly = true)
at line 85
static
set_report_errors($reportErrors)
deprecated
deprecated
at line 93
static
report_errors()
deprecated
deprecated