lithium\storage\session\strategy\Hmac::delete()

public method

Delete strategy method.

Parameters

  • mixed $data

    The data to be signed.

  • array $options

    Options for this method.

Returns

array

Data & signature.

Source

	public function delete($data, array $options = []) {
		$class = $options['class'];

		$futureData = $class::read(null, ['strategies' => false]);
		unset($futureData[$options['key']]);

		$signature = static::_signature($futureData);
		$class::write('__signature', $signature, ['strategies' => false] + $options);
		return $data;
	}