lithium\storage\session\adapter\Php::clear()

public method

Clears all keys from the session.

Parameters

  • array $options

    Options array. Not used for this adapter method.

Returns

\Closure

Function returning boolean true on successful clear, false otherwise.

Source

	public function clear(array $options = []) {
		if (!$this->isStarted() && !$this->_start()) {
			throw new RuntimeException('Could not start session.');
		}
		return function($params) {
			return session_destroy();
		};
	}