lithium\storage\session\adapter\Cookie::check()
Checks if a value has been set in the cookie.
Parameters
-
string
$keyKey of the entry to be checked.
Returns
\ClosureFunction returning boolean true if the key exists, false otherwise.
Source
public function check($key) {
$config = $this->_config;
return function($self, $params) use (&$config) {
return (isset($_COOKIE[$config['name']][$params['key']]));
};
}