lithium\storage\session\adapter\Php::clear PHP Method

clear() public method

Clears all keys from the session.
public clear ( array $options = [] ) : Closure
$options array Options array. Not used for this adapter method.
return Closure Function returning boolean `true` on successful clear, `false` otherwise.
    public function clear(array $options = array())
    {
        if (!$this->isStarted() && !$this->_start()) {
            throw new RuntimeException('Could not start session.');
        }
        return function ($class, $params) {
            return session_destroy();
        };
    }