I have looked through past topics on this scenario, but have not been able to solve the problem. My problem is that when a person logs out they are still able to click the back button and continue to use the site. I am using session variables, not cookies. These are my files:
Application.cfm
<cfapplication name="PurchaseOrder"
SessionManagement="yes"
SessionTimeOut="#CreateTimespan(0,0,30,0)#"
SetClientCookies="no">
<!---Path variables (you may need to change these)--->
<cfset UserDSN="po">
<CFIF NOT IsDefined("Session.LoggedIn"
OR NOT IsDefined("Session.Group_Level"
>
<CFSET Session.LoggedIn=False>
<CFSET Session.Group_Level="">
</CFIF>
<CFIF Session.LoggedIn EQ False>
<CFIF NOT (CGI.PATH_INFO EQ "/purchaseorder/login.cfm"
>
<CFLOCATION url="login.cfm">
</CFIF>
</CFIF>
<CFIF NOT (CGI.PATH_INFO EQ "/purchaseorder/login.cfm"
>
<cfinclude template="LogOutTemp.cfm">
</CFIF>
LogOutTemp.cfm
<a href="LogOut.cfm">Logout</a>
LogOut.cfm
<cfset Structclear(session)>
<CFLOCATION url="login.cfm" addtoken="no">
<meta http-equiv="REFRESH" content="1; url=login.cfm">
Thanks!!!!
Application.cfm
<cfapplication name="PurchaseOrder"
SessionManagement="yes"
SessionTimeOut="#CreateTimespan(0,0,30,0)#"
SetClientCookies="no">
<!---Path variables (you may need to change these)--->
<cfset UserDSN="po">
<CFIF NOT IsDefined("Session.LoggedIn"
<CFSET Session.LoggedIn=False>
<CFSET Session.Group_Level="">
</CFIF>
<CFIF Session.LoggedIn EQ False>
<CFIF NOT (CGI.PATH_INFO EQ "/purchaseorder/login.cfm"
<CFLOCATION url="login.cfm">
</CFIF>
</CFIF>
<CFIF NOT (CGI.PATH_INFO EQ "/purchaseorder/login.cfm"
<cfinclude template="LogOutTemp.cfm">
</CFIF>
LogOutTemp.cfm
<a href="LogOut.cfm">Logout</a>
LogOut.cfm
<cfset Structclear(session)>
<CFLOCATION url="login.cfm" addtoken="no">
<meta http-equiv="REFRESH" content="1; url=login.cfm">
Thanks!!!!