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 = array()) {
		$session =& $this->_session;

		return function($self, $params) use (&$session) {
			extract($params);
			unset($session[$key]);
			return !isset($session[$key]);
		};
	}