Combine this question with my previous question and you can see ... I'm
trying to stretch myself here ...

>From the manual:

"Use session variables when the variables are needed for a single site visit
or set of requests. For example, you might use session variables to store a
user's selection in a shopping cart application. ..."

Now I know all about the Web being a stateless environment, but based on
this and other things I've read, I've always taken it that once you set a
session variable, it's SET until the session times out.

I'm not having any luck with that.

I pass a form submission to this bit of code: 

<cfif IsDefined("form.fieldnames")>
<cfloop
        list="#form.fieldnames#"
        index="field">
        <cflock timeout="20" throwontimeout="No" name="JoinVCSingles"
type="EXCLUSIVE">
        <cfset SetVariable("session.#field#", 
                "#evaluate("form."&"#field#")#")>
                </cflock>
                </cfloop>
</cfif>

No errors show up there.

Then when I go to the next page (through another form submission) and test
for the existance of my expected session vars, they don't exist.

I've check the settings on the server (session vars should time out after 10
minutes -- it was 10 seconds because one time when I was using session vars
in developing something else, the session vars not going away were causing
problems (for testing purposes) -- and they seemed to be working as expected
then, but that was a while back and I don't remember the details of what I
was doing.)

Any way, I would appreciate any insights into what I might be
misunderstanding here.

What I'm trying to create is a three-step form submission (instead creating
one long submission form).  I could just pass variables through hidden form
fields, but I find that clumsy. What I _thought_  I could do is set session
vars and collect all of the data on the final page of the application and
send them to the database.

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.

Reply via email to