I use this code to logout my users from my application. However, it doesn't seem to work in Firefox 2.0.0.11 - although it seems to work in IE. In Firefox, after logging out I can still hit the Back button in the browser, and pull up restricted pages. Has anyone else seen this ?
<CFLOCK TIMEOUT="5" THROWONTIMEOUT="No" TYPE="READONLY" SCOPE="SESSION">
<CFSCRIPT>
Temp = StructNew();
Temp.CFID = Session.CFID;
Temp.CFTOKEN = Session.CFTOKEN;
</CFSCRIPT>
</CFLOCK>
<!--- Kill the session --->
<CFLOCK TIMEOUT="5" THROWONTIMEOUT="No" TYPE="EXCLUSIVE" SCOPE="SESSION">
<CFSCRIPT>
StructClear(Session);
// Restore the important values.
Session.CFID = Temp.CFID;
Session.CFTOKEN = Temp.CFTOKEN;
</CFSCRIPT>
</CFLOCK>
<CFLOCK TIMEOUT="5" THROWONTIMEOUT="No" TYPE="READONLY" SCOPE="SESSION">
<CFSCRIPT>
Temp = StructNew();
Temp.CFID = Session.CFID;
Temp.CFTOKEN = Session.CFTOKEN;
</CFSCRIPT>
</CFLOCK>
<!--- Kill the session --->
<CFLOCK TIMEOUT="5" THROWONTIMEOUT="No" TYPE="EXCLUSIVE" SCOPE="SESSION">
<CFSCRIPT>
StructClear(Session);
// Restore the important values.
Session.CFID = Temp.CFID;
Session.CFTOKEN = Temp.CFTOKEN;
</CFSCRIPT>
</CFLOCK>