Get values from session.

@param string $key     in session variable.
@param mixed  $default default value to return when key is not set in session.

@return mixed
342715
public function get($key, $default = null)
    {
        return isset($_SESSION) && isset($_SESSION[$key])
            ? $_SESSION[$key]
            : $default;
    }
329215
public function get($key, $default = NULL) {
    $value = parent::get($key);

    if (isset($value)) {
      return $value;
    }

    return $default;
  }
658272
public function get(string $key, $default = null)
    {
        return ($value = $this->offsetGet($key)) === null ? $default : $value;
    }
676313
public static function getState($key, $default = null)
	{
		$session  = self::$app->get('session');
		$registry = $session->get('registry');

		if (!is_null($registry))
		{
			return $registry->get($key, $default);
		}

		return $default;
	}
140882
public function get($key, $default = null)
    {
        $keys = explode('.', $key);
        $value = $default;
        foreach ( $keys as $i => $_key ) {
            if ( ! $i && isset($this->_params[$_key]) ) {
                $value = $this->_params[$_key];
            } elseif ( is_array($value) && isset($value[$_key]) ) {
                $value = $value[$_key];
            } else {
                $value = $default;
                break;
            }
        }
        return $value;
    }
724222
public function value($key, $default = null)
    {
        return array_key_exists($key, $this->values)
            ? $this->values[$key]
            : $default;
    }
246252
public function get($key, $default = null)
	{
		$value = $this->store->get($key);

		if (is_null($value))
		{
			$this->fireCacheEvent('missed', [$key]);

			$value = value($default);
		}
		else
		{
			$this->fireCacheEvent('hit', [$key, $value]);
		}

		return $value;
	}
872454
public function get($key, $default = null)
    {
        $values = $this->readFileContents();

        if ($this->has($key)) {
            return $values[$key][self::VALUE];
        }

        return $default;
    }
122714
public function get($key, $default = null)
    {
        if ($this->offsetExists($key))
        {
            return $this->offsetGet($key);
        }

        return value($default);
    }
818849
public static function get($key, $default = NULL) {
		self::start ();
		return isset ( $_SESSION [$key] ) ? $_SESSION [$key] : $default;
	}
1225605
public function get($key, $default = null)
    {
        if (!$this->id) {
            throw new Exception('Cannot use get without active session.');
        }
        return array_key_exists($key, $this->data) ? $this->data[$key] : $default;
    }
681323
public function get($key, $default = null)
    {
        $value = Arr::get($_COOKIE, $key);

        if ($value === null) {
            return $default;
        }

        return $this->defaults['encrypt']
            ? $this->getEncryption()->decryptBase64($value)
            : $value;
    }
876480
public function get($key, $default = null)
    {
        $data = DotArray::get($this->getStorage(), $key);

        return $data === null ? $default : $data;
    }
635198
public function get( $key, $default = null ) 
	{
		if ( !isset( $this->GET[$key] ) ) 
		{
			return $default;
		}
		return $this->GET[$key];
	}
296045
public function get($key, $default = null)
    {
        $value = parent::get($key, $default);
        if (is_array($value)) {
            $value = array_shift($value);
        }
        return $value;
    }
953380
public function getSession($key, $default_val = null)
    {

        if (isset($_SESSION[$key])) {
            return $_SESSION[$key];
        }

        return $default_val;
    }
271684
public function get($key, $defaultValue = null)
    {
        if (isset($this->session[$key]) && !empty($this->session[$key])) {
            return $this->session[$key];
        }

        return $defaultValue;
    }