how to clear session when somebody logout. Problem is that when somebody logout and again type the previous url, it again opens the previous page without loign page.
Here is my application.cfm file code and logout code. Please someone help me. Thanks in advance.
<cfapplication name="myApplication"
sessionmanagement="Yes"
sessiontimeout="#CreateTimeSpan(0,0,20,0)#"
applicationtimeout="#CreateTimeSpan(0,0,0,0)#"
setclientcookies="yes">
<cfsetting showdebugoutput="No">
<cfcookie name="CFID" expires="now">
<cfcookie name="CFTOKEN" expires="now">
<cfif IsDefined("Cookie.CFID") AND IsDefined("Cookie.CFTOKEN")>
<cfset cfid_local = Cookie.CFID>)
<cfset cftoken_local = Cookie.CFTOKEN>
<cfcookie name="CFID" value="#cfid_local#">
<cfcookie name="CFTOKEN" value="#cftoken_local#">
</cfif>
<cfparam name="select" default="login">
<cfif Not isdefined("session.TEST")>
<cfinclude template="login.cfm">
</cfif>
<cfparam name="hostname" default="
http://#HTTP_HOST#/">
<cflock timeout="30" throwontimeout="No" type="EXCLUSIVE" scope="APPLICATION">
<cfset application.fullpath = "#hostname#">
</cflock>
<cfset thisPath=ExpandPath("../")>
<cfparam name="drive" default="#GetDirectoryFromPath(thisPath)#">
and here is the logout code
<cfif select is "logout">
<CFLOCK SCOPE="SESSION" TYPE="exclusive" TIMEOUT="10">
<cfset abc=StructDelete(session, "TEST",true)>
</CFLOCK>
<cfcookie name="CFID" expires="now">
<cfcookie name="CFTOKEN" expires="now">
<cflocation url="login.cfm">
</cfif>