public function set($property, $value)
    {
        $defaultCurrentValue = [];
        $data = $this->session->get($this->_name, $defaultCurrentValue);
        $data[$property] = $value;

        $this->session->set($this->_name, $data);
    }
public function set($property, $value)
    {
        $defaultCurrentValue = [];
        $data = $this->session->get($this->_name, $defaultCurrentValue);
        $data[$property] = $value;

        $this->session->set($this->_name, $data);
    }
public function set ( $ property , $ value ) { $ defaultCurrentValue = [ ] ; $ data = $ this -> session -> get ( $ this -> _name , $ defaultCurrentValue ) ; $ data [ $ property ] = $ value ; $ this -> session -> set ( $ this -> _name , $ data ) ; }
Sets a value in the session bag

@param string $property
@param mixed  $value
Sets a value in the session bag