/**
  * Removes a session variable from an application context
  *
  * @param string $index
  */
 public function remove($index)
 {
     if (!$this->is_started) {
         $this->start();
     }
     $name = $this->getName($index);
     if (isset($this->_data[$name])) {
         unset($this->_data[$name]);
     }
     $this->cache->delete($name);
 }
Exemple #2
0
 public static function delete($key)
 {
     static::$cache === null and static::$cache = static::$di->getShared('cache');
     return static::$cache->delete($key);
 }