CFLocation fires the onError function (I believe). Are you using a
CFLocation after they Log into the system?

I put this in my onError() method (original idea by Ray Camden):

<!--- 
  CFLocation will cause an error for no reason in the event model. If 
  that happens, the exceptions type will be Aport Exception. Just 
  return out if that is the case. 
--->
<cfif NOT CompareNoCase( ARGUMENTS.Exception.RootCause.Type,
"coldfusion.runtime.AbortException" )>
  <cfreturn />
</cfif> 


.......................
Ben Nadel 
www.bennadel.com

-----Original Message-----
From: Will Tomlinson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 18, 2006 6:18 AM
To: CF-Talk
Subject: Why would this generate an error?

Sorry bout the lame post minus all the code, but everytime I post it, it
never posts. lol

Anyway, I have an Application.cfc in an admin folder... it extends the
rootApplication.cfc. In the admin folder App.cfc I'm using onRequestStart()
to restrict access. 

<cffunction name="onRequestStart" returntype="void" output="false">
        <cfif NOT IsDefined("SESSION.auth.isLoggedIn")>
           <cfinclude template="login.cfm">     
           <cfabort>
    </cfif>
      <cfif IsDefined("URL.logout")>
         <cfset StructDelete(SESSION,"auth")>
             <cflocation url="login.cfm">
     </cfif>
</cffunction> 

In my root Application.cfc, I'm using onError(). The problem is, if you
simply login to the admin folder, an error is thrown. You never see anything
wrong when you go thru login, onError() just fires off. 

I can't figure out why an error would be generated from loggin in like this.


Thanks,
Will



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:246865
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to