Removes a session variable

@access  public
@param   string  $key    Session variable name
@return  string  Deleted encrypted key
966597
public function remove($key) {
        $key = $this->secureKey($key);
        
        if (isset($_SESSION[$key])) unset($_SESSION[$key]);
        
        return $key;
    }
379814
public function remove($key)
    {
        if ($this->resumable() && $this->started()) {
            $unset = &$_SESSION;
            foreach (func_get_args() as $key) {
                $names = $this->explode($key);
                while (count($names) > 1) {
                    $name = array_shift($names);
                    if (isset($_SESSION[$name]) && is_array($_SESSION[$name])) {
                        $_SESSION = &$_SESSION[$name];
                    }
                }
                unset($_SESSION[array_shift($names)]);
                $_SESSION = &$unset; // clean up after each pass
            }
        }
    }
1101340
protected function removeState($key)
    {
        if (!Yii::$app->has('session')) {
            return true;
        }
        /* @var \yii\web\Session $session */
        $session = Yii::$app->get('session');
        $key = $this->getStateKeyPrefix() . $key;
        $session->remove($key);
        return true;
    }
293802
public static function delete($key)
    {
        empty(self::$prefix) && self::$prefix = Config::get('session_prefix');
        if (is_array($key)) {
            foreach ($key as $k) {
                if (isset($_SESSION[self::$prefix . $k])) unset($_SESSION[self::$prefix . $k]);
            }
        } else {
            if (isset($_SESSION[self::$prefix . $key])) unset($_SESSION[self::$prefix . $key]);
        }
        return true;
    }
620547
function reset($key)
    {
        $key = self::PREFIX.$key;
        return $this->redis->del($key);
    }
1157533
public function forget($key)
    {
        $key = Arr::wrap($key);
        $result = $this->whereIn('key', $key)->delete();
        $this->cacheForget($key);

        return $result;
    }
128170
public static function destroy($key = '')
    {
        if (self::$_sessionStarted == true) {

            if (empty($key)) {
                session_unset();
                session_destroy();
            } else {
                self::setPrefix();
                unset($_SESSION[self::$_sessionPrefix . $key]);
            }
        }
    }
565663
public function remove($key)
    {
        $key = is_array($key) ? $key : [$key];
        $config = $this->data;
        $data = &$config;
        while ($key) {
            $k = array_shift($key);
            if (!$key) {
                unset($config[$k]);
                break;
            }
            $config[$k] = isset($config[$k]) ? $config[$k] : [];
            $config = &$config[$k];
        }
        $this->data = $data;
        return $this->save();
    }
76444
public function forget($key = null)
    {
        $this->startSession();

        if ($key === null) {
            unset($_SESSION[$this->session_key][$this->name]);
        } else {
            unset($_SESSION[$this->session_key][$this->name][$key]);
        }

        return $this;
    }
474793
public function delete($key)
    {
        $sth = $this->pdo->prepare(
            "DELETE FROM sessions WHERE id = :id"
        );

        $sth->bindValue(':id', $key, \PDO::PARAM_INT);
        $sth->execute();
    }
582801
public function remove(string $key){
        if($this->status() !== self::ACTIVE){
            throw Exception\SessionException::notStarted();
        }

        if(array_key_exists($key, $_SESSION)){
            unset($_SESSION[$key]);
        }

        return $this;
    }
953078
public function remove($key)
	{
		$this->connect();
        
		$key = $this->formatKey($key);
		return $this->driver->delete($key);
	}
323866
public function remove($key)
    {
        if ($this->has($key)) {
            unset($this->session[$key]);
            return true;
        } else {
            return false;
        }
    }
1091701
public function getSessionKeyName($key)
    {
        $key_name = $key;
        if (! empty( $this->session_base_name )) {
            $key_name = $this->session_base_name.'_'.$key_name;
        }

        return $key_name;
    }
1359652
protected function clearRemoval($key)
    {
        if (false === $this->willRemove($key)) {
            return $this;
        }
        $key = array_search($key, $this->remove);
        unset($this->remove[$key]);
        $this->remove = array_values($this->remove);
        return $this;
    }
740863
public function forget($key)
	{
		$key = $this->id($key);
		return $this->apcu ? apcu_delete($key) : apc_delete($key);
	}
708303
public function take($key)
    {
        self::requireSession();
        if (false === \array_key_exists($key, $_SESSION)) {
            throw new SessionException(\sprintf('key "%s" not found in session', $key));
        }
        $value = $_SESSION[$key];
        unset($_SESSION[$key]);

        return $value;
    }