I am new to application.cfc and I am running into problems trying to use the
onError function. I think I have narrowed it down to a <cfabort> in my
onRequestStart function.
I use it to log in users to the web site. If they don't have a
session.UserName defined then I kick them to a login page and abort the rest of
the processing.
Can I put an abort in the application.cfc?
<cffunction name="onRequestStart">
<cfparam name="session.UserName" default="">
<!--- process login --->
<cfif IsDefined("Form.UserLoggingIn")>
<cfinclude template="act_login.cfm">
</cfif>
<!--- if not logged in then goto Login Form --->
<cfif session.UserName eq "">
<cfinclude template="dsp_login.cfm">
<cfabort />
</cfif>
</cffunction>
<cffunction name="onError">
<cfargument name="Exception" required=true/>
<cfargument type="String" name="EventName" required=true/>
<cfmail to="[EMAIL PROTECTED]" from="[EMAIL PROTECTED]" subject="Error"
type="html">
<cfdump var="#arguments.exception#">
</cfmail>
</cffunction>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267135
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4