Exemple #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;
 }
Exemple #2
0
 /**
  * Session helper
  *
  * @return \Eco\Factory\Session
  */
 public static final function session()
 {
     return Session::getInstance();
 }