src/Location/Manager.php
public function getSession($key = null, $default = null)
    {
        $sessionData = Session::get($this->sessionKey);

        return is_null($key) ? $sessionData : array_get($sessionData, $key, $default);
    }
public function getSession($key = null, $default = null)
    {
        $sessionData = Session::get($this->sessionKey);

        return is_null($key) ? $sessionData : array_get($sessionData, $key, $default);
    }
Retrieves key/value pair from session data.

@param string $key Unique key for the data store.
@param string $default A default value to use when value is not found.

@return mixed