Extends
lithium\core\Object
Clears all keys from the session.
Parameters
- array $options Options array. Not used fro this adapter method.
Returns
closure Function returning boolean `true` on successful clear, `false` otherwise.Source
public function clear(array $options = array()) {
if (!static::isStarted() && !static::_start()) {
throw new RuntimeException("Could not start session.");
}
return function($self, $params) {
return session_destroy();
};
}