Thanks. I just found it documented at
http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/expres33.htm
The justification is "Because some browsers do not support some CGI
variables, ColdFusion always returns True when it tests for the existence of
a CGI variable, regardless of whether the browser supports the variable."
I'm not sure I agree with the justification but such is life. It looks like
I'll have to go with the kludge.
--
Mosh Teitelbaum
evoch, LLC
Tel: (301) 942-5378
Fax: (301) 933-3651
Email: [EMAIL PROTECTED]
WWW: http://www.evoch.com/
-----Original Message-----
From: Dave Watts [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 24, 2004 4:00 PM
To: CF-Talk
Subject: RE: IsDefined("CGI.foo") always returns YES
> I ran into something unusual and I've never heard of it
> before. Through some quick testing, it seems as if trying to
> determine a variables existence within the CGI scope, whether
> using IsDefined() or StructKeyExists(), always returns YES.
> Even if the variable doesn't exist in that scope.
This is intentional, documented behavior. I don't recall the exact
rationale, just that there was one.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

