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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

StructClear works in IE but not Firefox

Status
Not open for further replies.

nikky

Programmer
Feb 7, 2002
80
0
0
US
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>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top