Méthode |
Description |
|
__construct ( string $index, integer $timeout, string $path = '/', string $domain = null, boolean $httpOnly = true ) |
Constructor for the Cookie class intialises all class variables with the
given parameters. Most of the parameters map to PHP's setcookie
function. It creates a new Session object via the $this->__init() |
|
expire ( ) |
Expires the current $_SESSION by unsetting the Symphony
namespace ($this->_index). If the $_SESSION
is empty, the function will destroy the entire $_SESSION |
|
get ( string $name = null ) : string | null |
Accessor function for properties in the $_SESSION array |
|
set ( string $name, string $value ) |
A basic setter, which will set a value to a given property in the
$_SESSION array, stored in the key of $this->_index |
|