Trying to get a session variable to timeout by doing this but no luck. The variable testvar doesn't go away.
What am I doing wrong?
In application.cfm
<cfapplication name="test" sessionmanagement="yes" sessiontimeout="#createtimespan(0,0,0,10)#">
<cfparam name="testvar" default="a">
In other template
<cfif structkeyexists(session,'testvar')>
there
<cfelse>
gone
</cfif>
What am I doing wrong?
In application.cfm
<cfapplication name="test" sessionmanagement="yes" sessiontimeout="#createtimespan(0,0,0,10)#">
<cfparam name="testvar" default="a">
In other template
<cfif structkeyexists(session,'testvar')>
there
<cfelse>
gone
</cfif>