In CFMX7 - I thought creating a CFC in the Application.cfc in teh
"onSessionStart" method would create a CFC object that remained in
memory as long as the session was live, and the methods would be
available to any page. Is this not so?
If that's how it does work, can anyone see what is wrong with the way
I'm doing this? Here's a snippet from my Application.cfc ...
<cffunction name="onSessionStart" returnType="void">
<cfset var logid = createUUID()>
<cfscript>
Session.started = now();
ContentManager =
createobject("component","applicationmapping.cfcs.contentedit").init("#application.dsn#");
UserManager =
createobject("component","applicationmapping.cfcs.UserManager").init("#application.dsn#");
</cfscript>
etc
</cffunction>
I would have thought this would put an object called ContentManager
and another object called UserManager in the session scope and
throughout the site, the methods in those two CFCs would be available
to any page. No??
Cheers
Mike Kear
Windsor, NSW, Australia
Certified Advanced ColdFusion Developer
AFP Webworks
http://afpwebworks.com
ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month
---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/