lithium\storage\session\adapter\Memory::delete()
Delete value from the session
Parameters
-
string
$key
The key to be deleted
-
array
$options
Options array. Not used for this adapter method.
Returns
\ClosureFunction returning boolean true
on successful delete, false
otherwise
Source
public function delete($key, array $options = []) {
return function($params) {
unset($this->_session[$params['key']]);
return !isset($this->_session[$params['key']]);
};
}