I have a cfc, with some member variables and methods. I create an instance of it in application.cfm cos I need it to be application wide, I declare it like so:
This works fine, the object is instantiated. However, whenever a page is refreshed or a new link in the site is visited, the object seems to be deleted as the above code in application.cfm is called everytime.
I dont want this to happen!
Any ideas?
thanks in advance,
DT
Code:
<cfif not isdefined('request.myObject)>
<cfobject name="request.myObject" component="components.myObject">
</cfif>
This works fine, the object is instantiated. However, whenever a page is refreshed or a new link in the site is visited, the object seems to be deleted as the above code in application.cfm is called everytime.
I dont want this to happen!
Any ideas?
thanks in advance,
DT