Skip to main content
Inspiring
Aug 9, 2006 8:49 PM UTC
Answered

Proxy Server and caching

We have a Cold Fusion Web Site on our Windows 2000 Server that we host. We have some clients that have a proxy server that have to disable caching for the Web site to allow Users to log in properly. More specifically, if a client has 2 User Id's, they can log in with the 1st id fine and place an order then Log out. When they log in with there 2nd ID they see the 1st User Id Information , customer name, order, etc...

The only way around this is if we have the client disable caching for the web site on their server. Then, it works fine. Is there an alternative approach to a solution? As this is cumbersome to relay this to the IT department for them to access the site properly.

I am using Session variables to control to login and the shopping cart and am destroying the sessions during the logout process. I have also set all pages to no-cache, but this has not helped. Maybe there is a setting in the Cold Fusion Administrator that I need to set on our server...

Thank you in advance for any information.
-Tim
    This topic is closed to new replies. Start a new post to keep the conversation going.
    timrandeCorrect answer
    Inspiring
    Aug 10, 2006 8:51 PM UTC
    ok figured it out.. The cfm pages were caching on their proxy server.

    I put the following code in the application.cfm.
    <cfheader name="Cache-Control" value= "no-cache">
    <cfheader name="Pragma" value="no-cache">
    <cfheader name="Expires" value="#GetHttpTimeString(Now())#">

    this took care of it.


    1 reply

    timrandeAuthorCorrect answer
    Inspiring
    Aug 10, 2006 8:51 PM UTC
    ok figured it out.. The cfm pages were caching on their proxy server.

    I put the following code in the application.cfm.
    <cfheader name="Cache-Control" value= "no-cache">
    <cfheader name="Pragma" value="no-cache">
    <cfheader name="Expires" value="#GetHttpTimeString(Now())#">

    this took care of it.


    Translate