On Fri, 28 Sep 2001, Michael Manning wrote: > Date: Fri, 28 Sep 2001 13:50:31 -0400 > From: Michael Manning <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: browser refresh problem > > Hi: > I am using a server with the following info: Apache/1.3.11 (Unix) > mod_perl/1.24 secured_by_Raven. 5.7 Generic_106541-08 sun4u sparc SUNW, > Ultra-5_10. > > I have developed a program which reads a flat file, processes the data, > prints out the rows of data, a counter then adds up the rows and produces a > Total field. The total field is then set to zero and the loop continues > until the end of the program, where a Grand Total is printed. > > On the initial running of the .cgi script it works fine producing the proper > results. But, if I then press the refresh button on Internet Explorer > (generally within 5 seconds), the total field does not clear. My program > starts adding up the data again with a starting number at my final total > value before the refresh. This continues every time I press the refresh > button until I wait over five seconds. Then all is well and my program is > cleared. > > Can anyone explain to my why this is happening and what I need to do to > correct it? > > Thanks, > Michael Manning > [EMAIL PROTECTED]
Michael, It sounds like you've not properly declared and/or scoped your variable. Are you running under "strict"? Is the variable a global? Can you post the relevant parts of your code? Also, do you notice this behavior when you running Apache in single server mode ("httpd -X")? ky