Class Cookie
Cookie Cookie is an OOP way of handling a cookie
Methods summary
public static
|
|
public
|
#
__construct( string $name, mixed $value = null, integer $expire = 0, string $path = '/', string $domain = null, boolean $secure = false, boolean $httpOnly = true )
Constructor. |
public
|
|
public
string
|
|
public
|
|
public
mixed
|
|
public
|
|
public
integer
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
boolean
|
|
public
|
|
public
boolean
|
|
public
boolean
|
#
stillExists( )
Checks if the cookie still exists on the client side (Only checks timestamp, not whether the client deleted the cookie) |
Magic methods summary
Properties summary
protected
string
|
$name |
#
The name of the cookie |
protected
mixed
|
$value |
#
The value of the cookie |
protected
string|null
|
$domain |
#
The domain attribute of the cookie |
protected
integer
|
$expire |
#
The expire date of the cookie |
protected
string
|
$path |
#
The path of where the cookie should be avaible |
protected
boolean
|
$secure |
#
Whether the cookie is SSL only |
protected
boolean
|
$httpOnly |
#
Whether the cookie is HTTP only |