Extends
lithium\core\Object
Write a value to the session.
Parameters
- string $key Key of the item to be stored.
- mixed $value The value to be stored.
- array $options Options array. Not used for this adapter method.
Returns
closure Function returning boolean `true` on successful write, `false` otherwise.Source
public function write($key, $value, array $options = array()) {
$session =& $this->_session;
return function($self, $params) use (&$session) {
extract($params);
return (boolean) ($session[$key] = $value);
};
}