- Symphony 2.6.1
-
› assets
14 -
› boot
14 -
› core
23 -
› cryptography
4 -
› data-sources
6 -
› email-gateways
3 -
› events
3 -
› global
61 -
› interface
9 -
› toolkit
60 - Delegates92
- Deprecated24
Versions
- 2.7.9
- 2.7.8
- 2.7.7
- 2.7.6
- 2.7.5
- 2.7.3
- 2.7.2
- 2.7.10
- 2.7.1
- 2.7.0
- 2.6.9
- 2.6.8
- 2.6.7
- 2.6.6
- 2.6.5
- 2.6.4
- 2.6.3
- 2.6.2
- 2.6.11
- 2.6.10
- 2.6.1
- 2.6.0
- 2.5.3
- 2.5.2
- 2.5.1
- 2.5.0
- 2.4
- 2.3.6
- 2.3.5
- 2.3.4
- 2.3.3
- 2.3.2
- 2.3.1
- 2.3
- 2.2.5
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2
Options
public class Cookie
class.cookie.php #17The Cookie class is a wrapper to save Symphony cookies. Typically this
is used to maintain if an Author is logged into Symphony, or by extensions
to determine similar things. The Cookie class is tightly integrated with
PHP's $_SESSION
global and it's related functions.
Methods
void __construct(
$index, $timeout, $path, $domain, $httpOnly)
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()
Parameters
See Also
void expire()
Expires the current $_SESSION
by unsetting the Symphony
namespace ($this->_index
). If the $_SESSION
is empty, the function will destroy the entire $_SESSION
See Also
string|null get(
$name)
Accessor function for properties in the $_SESSION
array
Parameters
Returns
The value of the property, or null if it does not exist. If no $name
is provided, return the entire Cookie.
void set(
$name, $value)
A basic setter, which will set a value to a given property in the
$_SESSION
array, stored in the key of $this->_index