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) {
		$config = $this->_config;

		return function($self, $params) use (&$config) {
			return (isset($_COOKIE[$config['name']][$params['key']]));
		};
	}