> From: Andy Matthews [mailto:[EMAIL PROTECTED]
> Quick question...
> What if we wanted to just call a CFC and pass in ANY scoped variable?
Pass the name of the scope, that is, the string... "session", "application",
etc.. and not the scope itself.
~
Quick question...
What if we wanted to just call a CFC and pass in ANY scoped variable?
-Original Message-
From: Qasim Rasheed [mailto:[EMAIL PROTECTED]
Sent: Friday, January 26, 2007 1:47 PM
To: CF-Talk
Subject: Re: StructClear and passing in a string...
This should work on CFMX
Interesting!
I'll give that a shot, thank you Qasim!
andy
-Original Message-
From: Qasim Rasheed [mailto:[EMAIL PROTECTED]
Sent: Friday, January 26, 2007 1:47 PM
To: CF-Talk
Subject: Re: StructClear and passing in a string...
This should work on CFMX AFAIK
HTH
On 1/26/07,
This should work on CFMX AFAIK
HTH
On 1/26/07, Andy Matthews <[EMAIL PROTECTED]> wrote:
>
> I have an interesting situation...
>
> We have a multi-server configuration and there are times when we need to
> clear a certain structure, SESSION.userinformation or
> APPLICATION.siteinformation for e
On 4/8/02, sebastian palmigiani penned:
>After I do a
>
>StructClear(Session)
>
>the Session.URLToken that I have added to links also get cleared out and I
>get a message that Session.URLToken can't be found. How do I prevent it from
>doing it that?
If you only have a couple session variables you
You can't if unless you move that variables content into another scope
-Original Message-
From: sebastian palmigiani [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 11:01 PM
To: CF-Talk
Subject: StructClear(session)
After I do a
StructClear(Session)
the Session.URLToken that I
Using StructClear(session) clears out the entire session scope, including sessionID,
CFID & CFTOKEN - if this is what you want, great.
It's important to use StructClear(session.structName) if you want to clear only a
single structure in the session scope.
Chris Norloff
-- Original Mes
> > Douglas said:
> > One thing to note, is that with structClear() you will be
> > killing all session vars and not just the user that logged out.
> > I just checked, and in my app at least, this is not true.
> I believe that it will not clear out the CFIF and CFToken in versions 4.x
> but wil
> Douglas said:
> One thing to note, is that with structClear() you will be
> killing all session vars and not just the user that logged out.
> I just checked, and in my app at least, this is not true.
I believe that it will not clear out the CFIF and CFToken in versions 4.x
but will do so in v
I actually just needed to delete a structure, so I read up a little and
tried out some cfdumps, and according to Jedi Master Forta (Web Application
Construction Kit, 4th Ed), StructClear just erases the current user's
session (and everything in it.) It doesn't erase all session variables on
the s
DOH!
I define the structure. duh. Thanks for the pointer ;D
--Matt--
- Original Message -
From: "Douglas L. Brown" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, November 13, 2001 10:24 AM
Subject: Re: StructClear(session) again.
cust_login
WHERE username = '#userName#'
AND password = '#password#'
- Original Message -
From: "Matt Robertson" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, November 13, 2001 9:58 AM
Subject: Re: Struc
ginal Message -
From: "Douglas L. Brown" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, November 13, 2001 7:57 AM
Subject: Re: StructClear(session) again...
structClear(session.loggedIn,username)
structClear(session.loggedIn,username) would be a better alternative.
Db
- Original Message -
From: "Beau Harbin" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, November 13, 2001 5:00 AM
Subject: RE: StructClear(session) again...
Tage,
If you run a the StructClear() against the session scope
you will lose ALL the session keys, including the session
ID, CFID and CFTOKEN. Once these are gone, it is impossible
to then associate a user with a session.
Good luck,
Beau
-Original Message-
From: Tage Widsell [mailto:[
Just 'cause I'm on a run of disagreeing with Jeremy today ... ;)
Jeremy Allen said:
>Since one object merely references something else and does nto
>actually copy the data and get its own set of data
>So, this opens up some interesting possibilities.
>Namely custom data structures among other thi
-Rick
-Original Message-
From: Jeremy Allen [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 01, 2000 12:49 PM
To: [EMAIL PROTECTED]
Subject: RE: StructClear
StructDelete(structure, key) :)
If you wanted to clear the structe you COULD
And you are left with a mere shell of
the structur
> StructDelete(structure, key) :)
>
> If you wanted to clear the structe you COULD
>
>
>
>
>
> And you are left with a mere shell of
> the structure you once had :)
>
> Or you can use StructClear which clears
> out the *data* only.
Looping over the structure and deleting each member
Quarter Here >[ ]<
-Original Message-
From: Rick Osborne [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 01, 2000 12:56 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: StructClear
Stas-
The StructClear() function completely empties a structure; keys and
ever
data* only.
Jeremy
-Original Message-
From: Jamie Keane [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 01, 2000 11:02 AM
To: [EMAIL PROTECTED]
Subject: Re: StructClear
StructClear destroys struct keys. As for deleting structures altogether,
I'm not sure. Surely there's go
PROTECTED]]
Sent: Friday, September 01, 2000 11:02 AM
To: [EMAIL PROTECTED]
Subject: Re: StructClear
StructClear destroys struct keys. As for deleting structures altogether,
I'm not sure. Surely there's got to be a way to unset variables, right?
--
Jamie Keane
Programmer
SolutionMasters,
Stas-
The StructClear() function completely empties a structure; keys and
everything. Let's extend this for a second. Take the following situation:
A structure with 2 keys, right? Now, you can clear this structure one of
two ways:
There is an important distinction,
> Does StructClear reset keys in a structure to be blank, or
> does it remove the keys?
It removes keys and values.
> Also, what's a function to get rid of a structure altogether?
I don't think there is one. You could overwrite a structure with a simple
value:
...
One of the nice things a
StructClear destroys struct keys. As for deleting structures altogether,
I'm not sure. Surely there's got to be a way to unset variables, right?
--
Jamie Keane
Programmer
SolutionMasters, Inc.
9111 Monroe Rd., Suite 100
Charlotte, NC 28270
www.solutionmasters.com
704.563.5559 x 228 Voice
704.
>Could you enhance upon why you need to use cflock? Thanks!
I have forwarded to Michael a series of posts made to the Fusebox list some
time ago about locking access to shared variable access.
If anyone else is interested just let me know.
You may also want to look at
http://www.allaire.com/H
> Could you enhance upon why you need to use cflock? Thanks!
Any time you read or write to memory variables (session, application,
server) you should use CFLOCK. If you're using CF 4.5, you should use the
SCOPE attribute in your CFLOCK tag, otherwise use the NAME attribute.
If you don't, you ri
[mailto:[EMAIL PROTECTED]]
Sent: Monday, April 03, 2000 10:31 AM
To: [EMAIL PROTECTED]
Subject: RE: structclear
It will not clear client vars, that's a different scope. And yes, you should
use CFLOCK in the case I described below. To be 100% safe, you
should -always- use C
ilto:[EMAIL PROTECTED]]
> Sent: Monday, April 03, 2000 11:49 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: structclear
>
>
> This message is in MIME format. Since your mail reader does not understand
> this format, some or all of this message may not be legible.
>
> --
3, 2000 11:14 AM
To: [EMAIL PROTECTED]
Subject: RE: structclear
It works, but too well. It also clears out session vars that ColdFusion uses
to track you. You should either use StructDelete to remove individual
variables, or simply store all of your stuff in a substructure, like
Session.MyVars. Th
It works, but too well. It also clears out session vars that ColdFusion uses
to track you. You should either use StructDelete to remove individual
variables, or simply store all of your stuff in a substructure, like
Session.MyVars. Then you can call StructClear on that structure w/o any
worries.
30 matches
Mail list logo