Here's three sets of code in three messages, since HOF cuts it all off.
Post
When I use this code in an application.CFM everything works fine.
Essentially, I'm sniffing the browser and setting Session vars so that a
correct CSS sheet can be presented.
Could it have something to do with locking inside the cfc's?
Here's the code for the three sections:
Thanks for your help.
Mark
========================
Application.cfc
<cffunction name="onSessionStart" returnType="void" hint="Sniff the
Browser and set the CSS style sheets used; increment the session counter">
<cfset SESSION.started = Now()>
<cflock name="#THIS.name#_numberOfSessions" type="exclusive"
timeout="10">
<cfset APPLICATION.numberOfSessions =
APPLICATION.numberOfSessions + 1 />
</cflock>
<cfinvoke
component="nsaohio.cf-inf.cfcomponents.browserSniffer"
method="getAttributes" />
<cfinvoke component="nsaohio.cf-inf.cfcomponents.css"
method="setCSS" />
</cffunction>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:223340
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54