This content has been marked as final. Show 5 replies
it usually happens because user's browser caches the visited pages. this
is default browser behaviour.
you can prevent your pages from being cached by using appropriate meta
tags and/or cfheader tags. google 'coldfusion prevent page caching' for
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 login.cfm
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 "/mcl_sistema/Verificalogin.cfm")>
<CFLOCATION URL="/mcl_sistema/Login.cfm" ADDTOKEN="No">