lithium\storage\session\adapter\Cookie::check()

public method

Checks if a value has been set in the cookie.

Parameters

  • string $key

    Key of the entry to be checked.

Returns

\Closure

Function 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']]));
		};
	}