Skip to main content
January 15, 2009
Question

Wierd issue with cflocation

  • January 15, 2009
  • 3 replies
  • 1048 views
I have a very wierd issue that I cannot figure out.

I have a CF application (currently on version 7) that has been running the exact same way for 9 years.
A month ago we went from hosting it on the main cf instance to creating 3 new instances and clustering them.

Since then, my cflocation tags will not work correctly. Sometimes they will redirect and other times they will change the url in the browser but not redirect the page. I am NOT using any cfflush tags or any cfheader tags on my pages. This happends all thru out my application. I have attached a sample page, which is just one line, a cflocation tag. A request comes into the page and I just simply redirect them to another page.

Another wierd tidbit of information..
If I put some simple text like 'got here' and a cfabort before the cflocation tag I can see the text and it will abort fine.
I then remove the cfabort, change the text to 'second time thru' and the page will not redirect and will not show the new or old text, just blank page with the new url in the browser url bar.

This only seems to be happening on IE 7 browsers. I was assuming it was a caching issue so I went in and disabled all caching in cold fusion admin and thru IIS. Nothing seems to help the issue at all


I am running on windows 2003 Server
IIS 6
Coldfusion 7,0,2,142559

Any help would be greatly appericiated.

Thank you

Mark







    This topic has been closed for replies.

    3 replies

    BKBK
    Community Expert
    Community Expert
    January 24, 2009
    You have apparently done your homework. Flush and cache indeed come to mind. One further thing you can do is test whether the session breaks.

    In the application file, set sessionmanagement, clientmanagement, setClientCookies and setDomainCookies to Yes. Also set cflocation's addtoken attribute to Yes. Does the problem persist? If not, then it was probably caused by a broken session.



    January 16, 2009
    Don't think that is the case. I check which instances server I am on before and after the redirect, and they are both being serverd by the same instanace server.

    Inspiring
    January 15, 2009
    mrrfoxx7 wrote:
    > I have a very wierd issue that I cannot figure out.
    >

    Complete shot in the dark and a wild eyed guess.

    A <cflocation...> works by sending a http 302 'Found' or 'Moved
    Temporarily' status to the browser. Now, since you have three servers,
    I'm wondering if I.E. 7 might be rejecting the HTTP status request to be
    redirected to another server. So IE 7 works if the redirect is back to
    the same server but rejects if it is redirected one of the other two.
    I could imagine that this as some sort of *anti* spam|phishing|cross
    site scripting protection built into the new browser.

    If this is the case I do not know what can be done about it.