public static function getSessionValue(string $name, $default = null, bool $ignoreCase = false)
    {
        self::ensureSession();
        
        $session = $_SESSION ?? array();
        return ArrayUtils::getArrayValueForKeyOrDefault($session, $name, $default, $ignoreCase);
    }
public static function getSessionValue(string $name, $default = null, bool $ignoreCase = false)
    {
        self::ensureSession();
        
        $session = $_SESSION ?? array();
        return ArrayUtils::getArrayValueForKeyOrDefault($session, $name, $default, $ignoreCase);
    }
public static function getSessionValue ( string $ name , $ default = null , bool $ ignoreCase = false ) { self :: ensureSession ( ) ; $ session = $ _SESSION ?? array ( ) ; return ArrayUtils :: getArrayValueForKeyOrDefault ( $ session , $ name , $ default , $ ignoreCase ) ; }
Get the value from the current session for the specified name.
Return a default value if the value could not be found.

@param string $name

@param mixed $default
Value to return if the key is not found in the session.

@param bool $ignoreCase
[optional]
Whether to treat lowercase and uppercase letters as equivalent during the search.

@return mixed The value from the current session for the specified name.
Get the value from the current session for the specified name . Return a default value if the value could not be found .