Hi Angelo,
Thanks very much, again, for your help. It's weird because I have the same
code on 2 servers and it works on one and not the other. The page that is
doing the cflocation is part of a fairly complex series of <cfif> statements
that do various things based on fields in a database. One of those fields is
a filename and the <cflocation> tag is supposed to call the file from the
database. When I replace the <cflocation> tag with a <meta refresh> it
works. And it also works on the other server. Something must have changed on
the demo server to stop it from working but I'm stumped as to the cause.
I agree with you that it sounds like a confusion in the HTTP status. I'm not
setting any cookies but there is a login routine in the Application.cfc
file.
The thing I'm trying to understand is why it works on one server and not the
other.
-= Ed
> -----Original Message-----
> From: Angelo McComis [mailto:[EMAIL PROTECTED]
> Sent: 12 December 2006 13:20
> To: CF-Linux
> Subject: Re: Totally bizarre
>
> Ed...
>
> The 200 is the give-away.
>
> I tried going to your site (from the log line below) and I
> can see this is a login page of sorts.
>
> MX7 is a current revision, so some of those old caveats that
> caused problems aren't in play. But, let's examine the page
> that's supposed to do the CFLOCATION a little closer. I'll
> be happy to look at it (off list even, if you like).
>
> My bet is that you're doing a cfcookie to set some sort of
> login flag, and then do a cflocation.
>
> Angelo
>
>
>
>
>
> Edward Chanter wrote:
> > Hi Angelo,
> >
> > Thanks that is really helpful. I checked the httpd log and is
> > returning a
> > 200:
> >
> > 193.122.20.17 - - [12/Dec/2006:13:08:20 +0000] "GET
> > /inside.cfm?wtxt=617 HTTP/1.1" 200 7255
> "http://demoglobescan.shapingtomorrow.com/welcome.cfm"
> > "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1)
> > Gecko/20061010 Firefox/2.0"
> >
> > The next question is my version is MX7, do you know of
> anything that
> > might cause this to happen. It's weird because I haven't made any
> > changes to this area of the code for a while.
> >
> > -= Ed
> >
> >
> >> -----Original Message-----
> >> From: Angelo McComis [mailto:[EMAIL PROTECTED]
> >> Sent: 12 December 2006 13:03
> >> To: CF-Linux
> >> Subject: Re: Totally bizarre
> >>
> >> The CFLOCATION tag tells the server to send a 302 - object moved
> >> response. BUT depending on how your page is written, the order of
> >> the tags matters... if for some reason, any other tag that
> stuffs the
> >> HTTP response fires first, the CFLOCATION won't work.
> >>
> >> In older versions if CFLOCATION wasn't the first tag on
> the page, it
> >> wouldn't work. If you can sniff the session (or at worst,
> tail -f
> >> on your access log file), check to see what server
> response code is
> >> being logged. 302? Then it should be working. 200 - It's
> processing
> >> a standard "OK here's your page " response.
> >>
> >> As for why it works on a different box, there's a multitude of
> >> reasons it could be. 1) Server configuration, 2) CF version, 3)
> >> slightly different up-stream application.cfm, ...
> >>
> >> A code snippet would help too.
> >>
> >> Angelo
> >>
> >>
> >>
> >> Edward Chanter wrote:
> >>
> >>> Dear All,
> >>>
> >>> Has anyone had a <cflocation> tag simply stop working in certain
> >>> situations and servers? I have and it's bizarre. The tag is
> >>>
> >> directing
> >>
> >>> to a page called dynamically from the dbase and this works
> >>>
> >> most of the
> >>
> >>> time. But one tag on one page has simply stopped doing what it's
> >>> supposed to. I didn't make any changes to the code or the
> >>>
> >> server and
> >>
> >>> the same page works fine on a different box.
> >>>
> >>> It's a long shot but I'm wondering if anyone has seen
> anything like
> >>> this before?
> >>>
> >>> best wishes,
> >>>
> >>> -= Ed
> >>>
> >>> --------------------------------------------
> >>> Edward Chanter
> >>> Technical Innovations Manager
> >>> Collaborative Connections Ltd.
> >>>
> >>> http://www.cc.uk.com/
> >>> [EMAIL PROTECTED]
> >>> Landline: 01273 832221
> >>> Mobile: 07866 365282
> >>> YIM!: jumperb
> >>> MSN: [EMAIL PROTECTED]
> >>> AIM: edwardchanter
> >>> --------------------------------------------
> >>>
> >>>
> >>>
> >>>
> >>
> >
> >
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU
Archive: http://www.houseoffusion.com/groups/CF-Linux/message.cfm/messageid:4236
Subscription: http://www.houseoffusion.com/groups/CF-Linux/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.14