<!---I have a 2nd page when logging out. The first one I call my goodbye
page- it just sets the history to forward +1 then sends it on to my log out
page
The goodbye page is:--->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<HEAD>
<title>LearningExpress Online</title>
<script language="JavaScript">
<!--
javascript:window.history.forward(1);
//-->
</script>
<script language="JavaScript">
<!--
setTimeout("top.location.href = '../Index.cfm'",1);
//-->
</script>
<!---<CFLOCATION URL="Index.cfm?fuseaction=LogOut">--->
</head>
<body>
Goodbye
</body>
</html>
On my logout page I put the following:
<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.User_ID= "0">
<CFSET CLIENT.SCHOOLNUM= "0">
<CFSET CLIENT.LoggedIn="NO">
<CFSET CFID="0">
<CFSET CFTOKEN="0">
<!------>
<CFSET DeleteCLIENTVariable("CFID")>
<CFSET DeleteCLIENTVariable("CFTOKEN")>
<CFSET DeleteCLIENTVariable("SCHOOLNUM")>
<CFSET DeleteCLIENTVariable("TCHNUM")>
<CFSET DeleteCLIENTVariable("SkillID")>
<!---<CFSET DELETECLIENTVariable("LoggedIn")>--->
<CFCookie NAME="CFID" VALUE="" EXPIRES="Now">
<CFCookie NAME="CFTOKEN" VALUE="" EXPIRES="Now">
<!---<meta http-equiv="Expires" content="0">
<CFINCLUDE TEMPLATE="Index.cfm?fuseaction=Gooodbye">
<cfLOCATION url="Index.cfm?fuseaction=Goodbye AddToken=no">--->
<script language="JavaScript">
<!--
javascript:window.history.forward(1);
//-->
</script>
This works great on a pc--you are always returned to the default page.
However, I never could come up with a solution for mac users (the majority
of our users). I ended up making it so that a 2nd window opens when they
want to log in then it closes when they log out. They can't see any urls in
the 2nd window so they can't bookmark anything either.
Hope this helps.
J
-----Original Message-----
From: Tangorre, Michael T. [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 05, 2001 4:12 PM
To: CF-Talk
Subject: CF and cached pages
I have a problem here, I cannot resolve it.
My issue is as follows:
I have someone login, if successful, I set a session variable.
When they log out, I delete that variable from the session structure and
send them back to the login page... However, if they hit back on the
broweser, they can get into the page they logged out from, which I don't
want to happen.
I tried using no cache in the meta tag, using cflocation when I send them to
the login page after loggin out.. I check for the variabel before the page
loads... Nothing works...
Any ideas?
Michael T. Tangorre
============================
Resident Assistant - Brick
Web Applications Developer
A.U. Webteam Slave :-)
AIM: CrazyFlash4
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists