There is not CFC though... here is all relevant code I could find that 
interacts with the variable or scoping.  There are no CFCs or user defined 
functions Anywhere in the script:

1: <cfapplication name="AppName"
2:      sessionmanagement="yes"
3:      sessiontimeout='#createtimespan(0,0,20,0)#'
4:      setclientcookies="yes"
5:      clientstorage="cookie">
6:
7: <cfset ST_userid=''>
8: 
9: <cfif isdefined("User")>  (User is a cfquery result variable)
10:     <cfset ST_userid = User.user_id>
11: <cfelse>
12:     <cfif isdefined("Cookie.CookieName")>
13:             <cfset ST_userid = Cookie.CookieName>
14:     </cfif>
15: </cfif>
16:
17: <cfif (true condition)>
18:     <cflock name="#APPLICATION.applicationName#" 
19:                     type="Exclusive" 
20:                     timeout="20" 
21:                     throwontimeout="no">
22:             <cfif structkeyexists(Application.SessionTracker,ID)>
23:                     <cfif
24: (
25:             structkeyexists(Application.SessionTracker[ID], "USERID")
26:               AND
27:             Application.SessionTracker[ID].USERID is not ST_userid
28: ) OR (
29:             NOT structkeyexists(Application.SessionTracker[ID],"USERID"
30: )
31:                >
32: (Do something here)
33:             </cfif>
34:     </cflock>
35: </cfif>


I thought it could be the cfapplication messing with something, but then I 
would expect the exception to be thrown after every execution, not just on rare 
occaisions (we get a massive amount of traffic, and this error has been thrown 
twice out of probably 300,000 instances.)

Again, on rare occiasions, this is throwing a ST_userid undefined error on line 
27.

--
Pat

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:268447
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to