-
getSalt() : void
-
-
getExpiration() : void
-
-
getPath() : void
-
-
getDomain() : void
-
-
getSecure() : void
-
-
getHttpOnly() : void
-
-
getEncrypt() : void
-
-
-
Does cookie contain a key
-
Gets the value of a signed cookie.
-
Sets a signed cookie.
-
Deletes a cookie by making the value NULL and expiring it.
-
Generates a salt string for a cookie based on the name and value.
-
setcookie(string $name, string $value, int $expire, string $path, string $domain, bool $secure, bool $httpOnly) : voidProxy for the native setcookie function - to allow mocking in unit tests so that they do not fail when headers
-
public function getSalt()
-
public function setSalt(variable $salt)
-
public function getExpiration()
-
public function setExpiration(variable $expiration)
-
public function getPath()
-
public function setPath(variable $path)
-
public function getDomain()
-
public function setDomain(variable $domain)
-
public function getSecure()
-
public function setSecure(variable $secure)
-
public function getHttpOnly()
-
public function setHttpOnly(variable $httpOnly)
-
public function getEncrypt()
-
public function setEncrypt(variable $encrypt)
-
public function __construct(string $salt)
-
public function has(string $key)
Does cookie contain a key -
public function get(string $key, variable $defaultValue)
Gets the value of a signed cookie.Cookies without signatures will not be returned. If the cookie signature is present, but invalid, the cookie will be deleted. -
public function set(string $key, string $value, int $lifetime)
Sets a signed cookie.Note that all cookie values must be strings and no automatic serialization will be performed! -
public function remove(string $key)
Deletes a cookie by making the value NULL and expiring it. -
public function salt(variable $name, variable $value)
Generates a salt string for a cookie based on the name and value. -
protected function setcookie(string $name, string $value, int $expire, string $path, string $domain, bool $secure, bool $httpOnly)
Proxy for the native setcookie function - to allow mocking in unit tests so that they do not fail when headershave been sent.