> -----Original Message-----
> From: Todd Ashworth [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, May 16, 2000 1:52 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Session vars in a clustered environment (addition)
>
> [...] but .. like you said, you don't like doing that so ... I dunno what
> else to tell you.
>
>
>
Well, actually, what I'm thinking about doing is looping through
hidden fields.
I don't like using large blocks of hidden fields because their
cumbersome. Their hard to manage, time consuming to code, not portable and
just a pain in the butt.
Right now this is how I set session vars ...
<cflock name="session.sessionID" timeout="10" type="EXCLUSIVE">
<cfif IsDefined("form.fieldnames")>
<cfloop
list="#form.fieldnames#"
index="field">
<cflock timeout="20" throwontimeout="No" name="Join"
type="EXCLUSIVE">
<cfset SetVariable("session.#field#",
"#evaluate("form."&"#field#")#")>
</cflock>
</cfloop>
</cfif>
</cflock>
What I think I want to do is figure out a way to do something like
this:
<cflock name="session.sessionID" timeout="10" type="EXCLUSIVE">
<cfif IsDefined("form.fieldnames")>
<cfloop
list="#form.fieldnames#"
index="field">
<cflock timeout="20" throwontimeout="No" name="Join"
type="EXCLUSIVE">
<input type=hidden name="#form.fieldnames#" value="#form.field#">
</cflock>
</cfloop>
</cfif>
</cflock>
Or some such ... I haven't worked on this yet ... I think I need to
use something other than form.fieldnames and form.field, but I can't
remember what it is. If anybody's got the info handy, drop me line because
I remember looking for it once before and it was difficult. (Heck, maybe the
above is correct ... I'm going to test it soon.)
H.
------------------------------------------------------------------------------
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.