RE: StructClear and passing in a string...

2007-01-26 Thread Mike Tangorre
> 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. ~

RE: StructClear and passing in a string...

2007-01-26 Thread Andy Matthews
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

RE: StructClear and passing in a string...

2007-01-26 Thread Andy Matthews
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,

Re: StructClear and passing in a string...

2007-01-26 Thread Qasim Rasheed
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

Re: StructClear(session)

2002-04-09 Thread Bud
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

RE: StructClear(session)

2002-04-08 Thread Clint Tredway
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

Re: StructClear(session) again...

2001-11-14 Thread Chris Norloff
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

RE: StructClear(Session)

2001-11-13 Thread Zac Belado
> > 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

RE: StructClear(Session)

2001-11-13 Thread Zac Belado
> 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

Re: StructClear(Session)

2001-11-13 Thread Tyler Silcox
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

Re: StructClear(session) again...

2001-11-13 Thread Matt Robertson
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.

Re: StructClear(session) again...

2001-11-13 Thread Douglas L. Brown
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

Re: StructClear(session) again...

2001-11-13 Thread Matt Robertson
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)

Re: StructClear(session) again...

2001-11-13 Thread Douglas L. Brown
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...

RE: StructClear(session) again...

2001-11-13 Thread Beau Harbin
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:[

RE: StructClear

2000-09-01 Thread Rick Osborne
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

RE: StructClear

2000-09-01 Thread Rick Osborne
-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

RE: StructClear

2000-09-01 Thread Dave Watts
> 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

RE: StructClear

2000-09-01 Thread Jeremy Allen
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

RE: StructClear

2000-09-01 Thread Justin Kidman
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

RE: StructClear

2000-09-01 Thread Jeremy Allen
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,

RE: StructClear

2000-09-01 Thread Rick Osborne
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,

RE: StructClear

2000-09-01 Thread Dave Watts
> 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

Re: StructClear

2000-09-01 Thread Jamie Keane
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.

Re: structclear

2000-04-03 Thread Seth Petry-Johnson
>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

RE: structclear

2000-04-03 Thread Dave Watts
> 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

RE: structclear

2000-04-03 Thread Michael Blair
[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

RE: structclear

2000-04-03 Thread Raymond K. Camden
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. > > --

RE: structclear

2000-04-03 Thread Won Lee
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

RE: structclear

2000-04-03 Thread Raymond K. Camden
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.