I'm having a problem getting a session variable to initialize using the
onSessionStart method of Application.cfc. I'm trying to instantiate a cfc
object named "rd" into the session scope, and initialize it. I'm using J2EE
sessions. No matter what I do, the "rd" session variable is not created. I
tried both with and without a lock on the session scope, but nothing works.
Any ideas? Here is a snippet from my Application.cfc:
<cffunction
name="OnSessionStart"
access="public"
returntype="void"
output="false"
hint="Fires when the session is first created.">
<!--- Instantiate the RecordDrawings.cfc into session.rd variable --->
<cflock scope="session" type="exclusive" timeout="10">
<cfset session.rd =
createObject("component","cfc.RecordDrawings").init(application.DS.ESGTracking)>
</cflock>
<!--- Return out. --->
<cfreturn />
</cffunction>
Thanks for any assistance.
Carl
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:306074
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4