What are the rules to using CFLOCK I have seen it posted all the
time. And just when I think that I know how to use CFLOCK I see someone
using it on almost every piece of thier code. Now I am all for something
that will make my application better, but how are we supposed to know when
we are to use CFLOCK. All session variables, all application variables? Can
someone explain it better. Also why use it around those kind of things, what
benefit does it have?
Robert Everland III
Web Developer
Dixon Ticonderoga
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 22, 2000 1:06 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: Session vars available from a different session?
> Suppose I've got some queries cached that I'd like to reload
> for one session based on a flag being set by another
> session. In other words, Joe user is working along and Joe
> admin decides to change something that should affect the
> queries the user is working with. I'd like the admin to be
> able to set a "dirty data flag" and then the admin CF code
> look through the available sessions for ones produced by the
> user side of the app and set a flag in each of those which
> would force a requery in the user's side.
>
> So, are session variables in the same app available in _any_
> way to any other session?
No, but with a little work, you could accomplish the same thing by placing
flags in the Application scope. For example, you could write the Session ID
to an Application array, which would be looped over by your admin code.
Just remember to lock all accesses to memory variables with CFLOCK.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.