Hi everyone, i have found in my application that when you
click on the Logout button it will log you out but if you click on
the back button of the browser instead of relocating you to the
login.cfm, It will show you all the history in the browser.
it usually happens because user's browser caches the visited
is default browser behaviour.
you can prevent your pages from being cached by using
tags and/or cfheader tags. google 'coldfusion prevent page
Originally posted by:
ayuso_15 Do you have any example? I just want this to happen when the
user logs out.
In that case, the "don't cache the page" method won't work.
If you want, you can let them do it. From a security
standpoint, they were allowed to see those pages anyway. From a
functional standpoint, put something in your application.cfc so
that if they submit any forms or select any links while they are
not logged in, they get re-directed to your login page.
I have my application.cfm redirecting to login.cfm but when
the user clicks on the back button it will show the last page. If
they try to do something then it will redirect them to the
I am using StructClear(Session) and
<CFLOCK SCOPE="Session" TYPE="ReadOnly" TIMEOUT="10">
<CFIF CGI.SCRIPT_NAME IS NOT "/mcl_sistema/Login.cfm">
<CFIF (CGI.SCRIPT_NAME IS NOT "/mcl_sistema/login.cfm")
AND (CGI.SCRIPT_NAME IS NOT
<CFLOCATION URL="/mcl_sistema/Login.cfm" ADDTOKEN="No">