Rick I actually have the log out stuff with no back in it (thanks to some folks on this list)- it's the regular pages that I need to refresh. So here's the code on my log out page. There's no one way to do it-it depends on the browser/machine/etc. I had a horrible time finding something that would work on the Mac! good luck, J
<HTML> <HEAD> <!--- Client side cache prevention ---> <meta http-equiv="Expires" content="0"> <!--- Setup our expire times for Netscape and Internet Explorer ---> <cfoutput> <!--- Internet Explorer Date Formate: (Fri, 30 Oct 1998 14:19:41 GMT) ---> <cfset MSIEtimestamp='#dateformat(now(),"DDD")#,#dateformat(now(),"DD")# #dateformat(now(),"Mmm")# #timeformat(now(),"HH:MM:SS")#'> <!--- Netscape Date Formate: Netscape (Wednesday, Apr 26 2000 17:45:25 PM) ---> <cfset NETSCAPEtimestamp='#dateformat(now(),"DDDD")#,#dateformat(now(),"MMM")# #dateformat(now(),"dd")# #dateformat(now(),"YYY")# #timeformat(now(),"HH:MM:SS tt")#'> </cfoutput> <!--- Tell HTTP Header to force expire of page - nocache ---> <cfif HTTP_USER_AGENT contains "MSIE"> <cfheader name="Expires" value="<cfoutput>#MSIEtimestamp#</cfoutput>"> <cfheader name="Pragma" value="no-cache"> <cfheader name="cache-control" value="no-cache, no-store, must-revalidate"> <cfelse> <cfheader name="Expires" value="<cfoutput>#NETSCAPEtimestamp#</cfoutput>"> <cfheader name="Pragma" value="no-cache"> <cfheader name="cache-control" value="no-cache, no-store, must-revalidate"> </cfif> </HEAD> <CFSET CLIENT.U_ID= "0"> <CFSET CLIENT.TchrID= "0"> <CFSET CLIENT.SCHL_ID= "0"> <CFSET CLIENT.LoggedIn="NO"> <CFSET CFID="0"> <CFSET CFTOKEN="0"> <!------> <CFSET DeleteCLIENTVariable("CFID")> <CFSET DeleteCLIENTVariable("CFTOKEN")> <CFSET DeleteCLIENTVariable("SCHL_ID")> <CFSET DeleteCLIENTVariable("TchrID")> <CFCookie NAME="CFID" VALUE="" EXPIRES="Now"> <CFCookie NAME="CFTOKEN" VALUE="" EXPIRES="Now"> <!---have the history point to the page that this page is being relocated to---> <script language="JavaScript"> <!-- javascript:window.history.forward(1); //--> </script> <script language="JavaScript"> <!-- setTimeout("top.location.href = 'http://www.k12albemarle.org'",1);self.close(); //--> </script> </HEAD> </HTML> -----Original Message----- From: Rick Walters [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 10:04 AM To: CF-Talk Subject: RE: Back button-refresh I have never been able to get the Meta Expire to work correctly. Is there a cross browser solution to successfully expire the page cache so you can't hit the back button and return to already rendered pages? I especially wanted to use this to clear the cache after people logout of the application. I'm sure someone has spent the time needed to figure this out. Good Fortune, Richard Walters, Internet Application Designer, Davita Laboratory Services [EMAIL PROTECTED] (800) 604-5227 x 7777 >>> [EMAIL PROTECTED] 05/23/02 08:38AM >>> You could try this: <cfheader name="EXPIRES" value="#NOW()#"> Thank you. Steve Burcham Webmaster - Field Support Team RDO Equipment Co. Phone (701) 239-8755 [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> -----Original Message----- From: Janine Jakim [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 7:17 AM To: CF-Talk Subject: Back button-refresh Can I force a page to refresh when a user hits the back button? If so How?? Thanks ______________________________________________________________________ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists