public static function getSessionValue(string $name, $default = null, bool $ignoreCase = false)
    {
        self::ensureSession();
        
        $session = $_SESSION ?? array();
        return ArrayUtils::getArrayValueForKeyOrDefault($session, $name, $default, $ignoreCase);
    }