John,
Check to see that you do not have any applications on the server that share
the same name - like when you copy code for reuse :)
-Original Message-
From: John Skrotzki [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 10, 2006 3:51 PM
To: CF-Talk
Subject: Losing Application
Are you using more than one cfapplication tag in your site with a
different application name?
Is there any logic around your cfapplication tag which could cause it to
not be executed, and therefore the page request would be outside of the
application?
Can you try/catch your access to that
Also, when are these variables set? If your CF service is restarted
during the day, your application scope will start over empty until those
values are cfset again.
~Brad
-Original Message-
From: John Skrotzki [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 10, 2006 3:51 PM
To: CF-Talk
Thanks for the reply, I have 3 apps called: RAW and RAW_Reps and COW (
customer order website 8-) and define the same app variables in each one - I
know I should be using server scope but I designed it yeas ago when I was still
green. Changing it over now scares me as there are literlly
I've seen this before.
Most likely you have two or more apps on the same server using the same
application name.
=]
Alan Rother
Macromedia Certified Advanced ColdFusion MX 7 Developer
~|
Message:
John,
I get the same thing occasionally. Its rare, but sometimes I get User is
undefined in SESSION. It will happen on a user-by-user basis, meaning, the
rest of the users are fine. Just one person gets messed up.
I have not been able to debug it as it happens so infrequently that I can't
narrow
Brad - they are set in the application.cfm of each app - maybe that is the
problem?
One weird instance was that it lost the variables DURING script execution when
send out an email broadcast (opt in) - so for example, script starts loops for
say 100 out of 200 fine then dies. Wierd...
Also,
Hi John,
I am having a possibly related issue in a VPS/Linux setup, although it is
using Blue Dragon rather than CF. It seems to not be able to properly
recurse up the directory tree to find an Application.cfm file if there is
not an Application.cfm file in the same directory as the calling
PM
To: CF-Talk
Subject: Re: Losing Application Variables Randomly...
Brad - they are set in the application.cfm of each app - maybe that is
the problem?
One weird instance was that it lost the variables DURING script
execution when send out an email broadcast (opt in) - so for example,
script
No I don't. But I am sure it is my coding somewhere as I still don't have a
solid grasp on the inner workings of apps and app files. I will try the try /
catch idea to see if I can narrow it down. It was more of a minor irrantant as
refreshing works but when sending emails it becomes
Or if your on a shared server, other customers could be using the same
application name too and thus hijacking your variables.
-Original Message-
From: Mark A Kruger [mailto:[EMAIL PROTECTED]
Sent: 10 May 2006 21:58
To: CF-Talk
Subject: RE: Losing Application Variables Randomly...
John
I think I may have found the problem ( at least logically ) after examining my
app code closer.
I don't check to see if the appication.datasource is already defined. I just
re-define it everytime. So it comes down to a race condition. If another
person accesses that app at the exact same
Locking :-)
-Original Message-
From: John Skrotzki [mailto:[EMAIL PROTECTED]
Sent: 10 May 2006 22:58
To: CF-Talk
Subject: Re: Losing Application Variables Randomly...
I think I may have found the problem ( at least logically ) after examining
my app code closer.
I don't check to see
13 matches
Mail list logo