Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Client Variable Problem

Status
Not open for further replies.

behbeh

Programmer
Mar 10, 2001
48
US
Hello!
I am using client variables and JUST found out (after testing 3 different PC's) that they are not saving correctly.
Everything works properly on the developer PCs (2 of them)but not on other boxes.
It seems that it saves one client variable, but when a DIFFERENT client variable is set, it eliminates the first one (which has a totally different name) and saves the second one. Then when a third client variable is set, it eliminates the 2nd one...and so on and so on. All in the same session.
Is this an Internet Explorer problem/setting? I don't think it's the web server, since 2 PC's are running the app just fine.
Any suggestions would be extremely appreciated!
Thanks!
:)
 
Internet Explorer has this "nice feature" of remembering content from past pages, which (in my opinion) is a very bad combination for Cold Fusion pages... My only two suggestions at this point are:

1) Try changing the settings in Internet Explorer a bit, where they compare files to old files, etc., (I can never remember whether it should be Never, Always, etc., but just play around with it)

2) Use CFHEADER tags to cause your pages to expire immediately, which *hopefully* might cause the browser to request a fresh copy every time.. here are the ones that I use:

<CFHEADER NAME=&quot;Expires&quot; VALUE=&quot;Mon, 06 Jan 1990 00:00:01 GMT&quot;>
<CFHEADER NAME=&quot;Pragma&quot; VALUE=&quot;no-cache&quot;>
<CFHEADER NAME=&quot;cache-control&quot; VALUE=&quot;no-cache&quot;>

They seemed to work for me, but I haven't spent a LOT of time on it, since most of my users use Netscape...

Hope that helps,
MG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top