To get session data

@param string $name
@param string $value

@return mixed
965184
public function get($name, $value = '')
    {
        if ($this->has($name)) {
            if($this->app->config('session.encryption')) {
                return $_SESSION[$name] ? $this->encrypter->decrypt($_SESSION[$name]) : $value;
            } else {
                return $_SESSION[$name] ? $_SESSION[$name] : $value;
            }
        }

        if (!empty($value)) {
            return $value;
        }

        return null;
    }
964621
public static function getx($name,$expire,$value=null){
        $content = self::get($name);
        if($content !== null) {
            return $content;
        }
        return self::setx($name,$expire,$value);
    }
132132
public function get_property( $name, $value = null ) {
		if ( ! array_key_exists( $name, $this->properties ) ) {
			$this->properties[ $name ] = new Variable_Property( $this, $name, $value );
		}

		return $this->properties[ $name ];
	}
1131680
public function get($name)
	{
		//check if null param supplied and return the while InputData array
		if($name === null){

			//return the whole array
			return $this->inputData;

		}

		//check for named paramter
		elseif ($this->KeyExists($name, $this->inputData)) {
			
			//return the value of this key
			return htmlentities($this->inputData[$name], ENT_QUOTES);

		}

		//this key does not exists, return bool false
		else{

			//return bool false
			return null;

		}

	}
1205102
public function read($name = null)
    {

        if (!isset($_SESSION)) {
            return null;
        }

        if ($name === null) {
            return isset($_SESSION) ? $_SESSION : [];
        }

        return Hash::get($_SESSION, $name);
    }
367742
public static function get(string $name): ?string
    {
        $data = Session::get($name, null, self::$namespace);
        if (is_array($data) && array_key_exists('token', $data)) {
            return $data['token'];
        }
        return null;
    }
560546
public static function set($name, $value = '')
    {
        empty(self::$init) && self::init();

        if (is_string($name)) {
            $_SESSION[$name] = $value;
        }

        if (is_array($name)) {
            foreach ($name as $item => $val) {
                $_SESSION[$item] = $val;
            }
        }
    }
311277
public function getData($name = null)
    {
        if ($name === null) {
            return $this->config['data'];
        } elseif (isset($this->config['data'][$name])) {
            return $this->config['data'][$name];
        } else {
            return null;
        }
    }
982317
public function getSession($name)
    {
        if (!$this->hasSession($name)) {
            $this->createSession($name);
        }

        return $this->sessions[$name];
    }
391469
public function getValueAttribute($name, $value = null)
    {
        if (is_null($name)) {
            return $value;
        }

        if (!str_contains($name, ['[', ']']) && !is_null($this->old($name))) {
            return $this->old($name);
        }


        if (!is_null($value)) {
            return $value;
        }

        if (isset($this->model)) {
            return $this->getModelValueAttribute($name);
        }
    }
359185
public static function get($name, $options = [])
    {
        RequestSession::_start();

        $default = isset($options["default"]) ? $options["default"] : null;

        return isset($_SESSION[$name]) ? $_SESSION[$name] : $default;
    }
140274
protected function getRequestValue($name) {
    $requestValues = $this->getLocalSessionValue(self::REQUEST_VAR);
    return isset($requestValues[$name]) ? $requestValues[$name] : null;
  }
1219836
public function getRow($table, $name, $value)
    {
        //argument test
        Argument::i()
            //Argument 1 must be a string
            ->test(1, 'string')
            //Argument 2 must be a string
            ->test(2, 'string')
            //Argument 3 must be scalar or null
            ->test(3, 'scalar', 'null');
        
        //make the query
        $query = $this->select()
            ->from($table)
            ->where($name.' = '.$this->bind($value))
            ->limit(0, 1);
        
        //get the results
        $results = $this->query($query, $this->getBinds());
        
        //event trigger
        $this->trigger('sql-row', $table, $name, $value, $results);
        
        //if we have results
        if (isset($results[0])) {
            //return it
            return $results[0];
        }
        
        return null;
    }
326442
public function data(string $name, $value = null)
    {
        if ($value === null) {
            return $this->getAttribute('data-' . $name);
        }

        return $this->setAttribute('data-' . $name, $value);
    }
295687
public static function get($name)
    {
        if (!self::isExist($name)) return false;
        $value = $_COOKIE[Config::get('cookie_prefix') . $name];
        return Encry::decrypt($value);
    }
435505
public function getValueAttribute($name, $value = null)
    {
        if (is_null($name)) {
            return $value;
        }

        if (! is_null($value)) {
            return $value;
        }
    }
744868
public function input(string $name, $value = null)
    {
        if ($value !== null) {
            !$this->all && $this->inputs();

            Arrays::set($this->input, $name, $value);
            $this->cache = [];

            return $value;
        }

        if (isset($this->input[$name])) {
            return $this->input[$name];
        }

        if (\array_key_exists($name, $this->cache)) {
            return $this->cache[$name];
        }

        if ($this->all) {
            $found = Arrays::get($this->input, $name);
        } else {
            if ($this->serverRequest->getMethod() !== 'GET') {
                $found = $this->request($name);
            }

            $found = $found ?? $this->query($name);
        }

        return $this->cache[$name] = $found;
    }