This method returns a session data by key

@param string $key The key with which to search session data
@return mixed The value stored in session
514477
public static function  get($key)
	{
		//check if this key exists 
		$exists = (isset($_SESSION[$key])) ? true : false;

		//return check status if false
		if ( ! $exists)  return $exists;

		//return the session data if found
		else return $_SESSION[$key];

	}
796130
public function getCachedObject($key) {
        $cache = HttpSession::instance()->getValue("__SESSION_CACHED_ITEMS");

        $timeouts = HttpSession::instance()->getValue("__SESSION_CACHE_TIMEOUTS");
        if (is_array($timeouts) && isset($timeouts[$key])) {
            $now = new \DateTime();
            $expiry = date_create_from_format("d/m/Y H:i:s", $timeouts[$key]);

            if ($now >= $expiry) {
                return null;
            }
        }

        return isset($cache[$key]) ? $cache[$key] : null;
    }
1214277
public static function get(string $key)
    {
        // Start session if needed
        if (! session_id()) {
            self::start();
        }

        // Fetch key
        if (Session::exists((string) $key)) {
            return $_SESSION[(string) $key];
        }

        // Key doesn't exist
        return null;
    }
1041258
public function get_data($key) {
        if (isset($this->data->$key)) {
            return $this->data->$key;
        }
        return null;
    }
292216
public function get($key, $default = null)
    {
        if(isset($this->data[$key]))
        {
            return $this->data[$key];
        }
        
        return isset($this->session[$key]) ? $this->session[$key] : $default;
    }
829519
public function remove($key)
    {
        $value = null;
        if (isset($_SESSION[$key])) {
            $value = $_SESSION[$key];
            unset($_SESSION[$key]);
        }
        return $value;
    }
316078
public function get($key) {
		
		if (isset($this->_data[$key])) {
			return $this->_data[$key];
		}
		
		if (isset($this->registered[$key])) {
			return $this->_data[$key] = call_user_func($this->registered[$key], $this);
		}
		
		return null;	
	}
921394
protected function getSessionData(string $key)
    {
        if (method_exists($this->getSession(), 'get')) {
            return $this->getSession()->get($key);
        } elseif (method_exists($this->getSession(), 'read')) {
            return $this->getSession()->read($key);
        }

        return false;
    }
692420
public function get($key = null)
    {
        trigger_error(__METHOD__.' is deprecated.', E_USER_DEPRECATED);

        if (0 === func_num_args()) {
            return $this->data();
        } else {
            return $this->data($key);
        }
    }
970276
public function get($key = null)
    {
        //argument 1 must be a string or null
        Argument::i()->test(1, 'string', 'null');

        if (!self::$session) {
            Exception::i()->setMessage(self::ERROR_NOT_STARTED)->trigger();
        }

        if (is_null($key)) {
            return $_SESSION;
        }

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

        return null;
    }
57996
public function get(string $key)
    {
        $key = $this->getNamespacedKey($key);

        return $this->session->get($key);
    }
321446
public function getData(string $key)
    {
        return ($key !== 'password' || $key !== 'salt' || $key !== 'remember_me') ? $this->data[$key] : false;
    }
966520
public function getData($key)
    {
        if ($this->started !== true) {
            throw new Exception\SessionNotStartedException('Tried to get session data, but the session has not been started yet.', 1351162255);
        }
        return $this->storageCache->get($this->storageIdentifier . md5($key));
    }
233284
public function load($key)
    {
        try {
            $sth = $this->pdo->prepare(
                'SELECT * FROM sessions WHERE id = :id'
            );

            $sth->bindValue(':id', $key, \PDO::PARAM_INT);
            $sth->execute();

            $session = $sth->fetchObject();

            if ($session instanceof \stdClass) {
                return array(
                    'id'            => $session->id,
                    'last_activity' => $session->last_activity,
                    'data'          => unserialize($session->data)
                );
            }

            return null;
        } catch (\PDOException $pdoe) {
            return null;
        }
    }
733707
public function get( $key )
	{
		$prefixed = $this->prefix . $key;

		$cache = $this->table()->where( 'key', '=', $prefixed )->first();

		// If we have a cache record we will check the expiration time against current
		// time on the system and see if the record has expired. If it has, we will
		// remove the records from the database table so it isn't returned again.
		if ( !is_null( $cache ) )
		{
			if ( is_array( $cache ) )
				$cache = (object) $cache;

			if ( time() >= $cache->expiration )
			{
				$this->forget( $key );

				return null;
			}

			return $this->encrypter->decrypt( $cache->value );
		}

		return null;
	}
673775
public function getKey($key)
	{
		return isset($this->data[$key]) ? $this->data[$key] : null;
	}
979199
protected function getData($key)
    {
        $query  = $this->db->query("SELECT value FROM cache WHERE key='" . $this->key($key) . "' AND expire >= datetime('now')");
        return $query->fetch();
    }