Cookie
class Cookie (View source)
A set of static methods for manipulating cookies.
Properties
Methods
public static
set(string $name, mixed $value, int $expiry = 90, string $path = null, string $domain = null, bool $secure = false, bool $httpOnly = true)
Set a cookie variable
public static
string|null
get(string $name, bool $includeUnsent = true)
Get the cookie value by name
public static
force_expiry($name, $path = null, $domain = null, $secure = false, $httpOnly = true)
No description
Details
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, bool $secure = false, bool $httpOnly = true)
Set a cookie variable
static string|null
get(string $name, bool $includeUnsent = true)
Get the cookie value by name
static array
get_all(bool $includeUnsent = true)
Get all the cookies
static
forceExpiry($name, $path = null, $domain = null)
deprecated
deprecated
No description
static
force_expiry($name, $path = null, $domain = null, $secure = false, $httpOnly = true)
No description
static
set_report_errors($reportErrors)
deprecated
deprecated
No description
static
report_errors()
deprecated
deprecated
No description