You must var change your variables when you implement a function inside CFC that is shared by several requests (i.e. Singleton, Service CFC in the application area)
You do not need (but it is highly recommended) var to change its variables if CFC is created each time, And your method does not call another method in the same CFC that can access the vars that you defined in the caller's method. For example, a remote method that you call directly through a web service or ajax that does not call other methods that use vars that you did not use var, or a controller in CFWheels.
"You should always define functionally local variables using the var keyword." to CFC variables and doc scope http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=buildingComponents_29.html
Henry source
share