lithium\storage\session\adapter\Memory::delete()

public method

Delete value from the session

Parameters

  • string $key

    The key to be deleted

  • array $options

    Options array. Not used for this adapter method.

Returns

\Closure

Function returning boolean true on successful delete, false otherwise

Source

	public function delete($key, array $options = []) {
		return function($params) {
			unset($this->_session[$params['key']]);
			return !isset($this->_session[$params['key']]);
		};
	}