lithium\storage\session\adapter\Php::clear()
Clears all keys from the session.
Parameters
-
array
$options
Options array. Not used for this adapter method.
Returns
\ClosureFunction returning boolean true
on successful clear, false
otherwise.
Source
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();
};
}