Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

session variable timeout problem

Status
Not open for further replies.

lwfg

Programmer
Feb 9, 2009
52
US
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>
 
Meant to say <cfparam name="session.testvar" default="a">.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top