Logoff user on browser close
Hello,
I am trying to logoff a user on browser close but i can't figure out how to do it, i remember being able to do this using the Application.cfm but now i am using Application.cfc and i added the following code and it doesn't work. Does anyone know how to do this?
<cffunction name="onRequestStart" returnType="boolean" output="false">
<cfif isdefined('Cookie.CFID') and isdefined('Cookie.CFTOKEN')>
<cfset Variables.cfid_local = Cookie.CFID>
<cfset Variables.cftoken_local = Cookie.CFTOKEN>
<cfcookie name="CFID" value="#Variables.cfid_local#">
<cfcookie name="CFTOKEN" value="#Variables.cftoken_local#">
</cfif>
<cfreturn true>
</cffunction>
