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