Hire Me! I'm currently looking for my next role in developer relations and advocacy. If you've got
an open role and think I'd be a fit, please reach out. You can also find me
on LinkedIn.
Did you know that isDefined returns true for any CGI variable, even if it doesn't exist? For example, this will always output:
<cfif isdefined("cgi.ray")>
<cfoutput>cgi.ray=#cgi.ray#</cfoutput>
</cfif>
What does cgi.ray evaluate to? An empty string. If you really want to check for the existence of CGI variable, either add a len(trim(...)) check, or use structKeyExists(cgi,"somekey").