Example #1
0
 /**
  * Key/value setter
  *
  * @param string $key
  * @param string $value
  * @return void
  */
 public function set($key, $value)
 {
     if (empty($key)) {
         return;
     }
     if (!$this->__session->has($this->key, $key)) {
         $this->__session->setChild($this->key, $key, []);
     }
     $_SESSION[$this->key][$key][] = $value;
 }