Server not maintaining sessions?
I'm using the ColdFusion builder to develop an application on my local machine. I installed the built in server that comes with ColdFusion 9's developer edition.
When I try to use the adobe provided code to set a session variable:
<cflock timeout=20 scope="Session" type="Exclusive">
<cfset Session.ShoppingCartItems = 0>
</cflock>
and then access it like so:
<cflock timeout=20 scope="Session" type="Exclusive">
<cfoutput>
Your shopping cart has #Session.ShoppingCartItems# items.
</cfoutput>
</cflock>
I get an error that says that session variable does no exist. My application.cfc file has these two properties defined:
<!--- Should we even use sessions? --->
<cfset this.sessionManagement = true>
<!--- How long do session vars persist? --->
<cfset this.sessionTimeout = createTimeSpan(0,0,20,0)>