Click to See Complete Forum and Search --> : BACK button triggering


capik79
06-15-2005, 12:26 AM
Hi Guys,

Do anyone know hoe to trigger BACk button. I mean if we click a back button at IE , the previous page will identify it come from the BACK button. Because i want to kill the session if user hit the back button or make it expired.
Currently i'm using this code :

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
<cfheader name="expires" value="#dateformat(now(), 'dd mmm yyyy')# #timeformat(now(), 'hh:mm:ss')# GMT">
<cfheader name="pragma" value="no-cache">
<cfheader name="cache-control" value="no-cache, no-store, must-revalidate">


and the result is not well function. Only working on certain page. Pls help me I got a dateline for this.

Million of thanks

Regards,
Shaffiq

phpnovice
06-15-2005, 08:56 AM
Only client-side JavaScript can trigger an operation similar to the browser's [Back] button:

top.history.go(-1);
...or...
top.history.back();