Hi,
What is the easiest way to take all the form variables (probably loop over)
and put it on the session.
or maybe put the whole form object into session something like that.
I appriciate if someone can provide some sample code
--
Regards,
cfset session.form = form
M!ke
-Original Message-
From: Asim Manzur [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 11, 2005 2:04 PM
To: CF-Talk
Subject: FORM scope into SESSION
Hi,
What is the easiest way to take all the form variables (probably loop
over) and put it on the session
easiest?
cfset session.myFormStuff = duplicate(form) /
On 8/11/05, Asim Manzur [EMAIL PROTECTED] wrote:
Hi,
What is the easiest way to take all the form variables (probably loop over)
and put it on the session.
or maybe put the whole form object into session something like that.
I
CFLOCK SCOPE=session TYPE=exclusive TIMEOUT=10
CFSET session.formvars = Duplicate(form)
/CFLOCK
That should work.
Dave
-Original Message-
From: Asim Manzur [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 11, 2005 3:04 PM
To: CF-Talk
Subject: FORM scope into SESSION
Hi,
What
Asim Manzur wrote:
Hi,
What is the easiest way to take all the form variables (probably loop over)
and put it on the session.
or maybe put the whole form object into session something like that.
I appriciate if someone can provide some sample code
doesn't this work?
cfset session.form =
scope into SESSION
Hi,
What is the easiest way to take all the form variables (probably loop
over) and put it on the session.
or maybe put the whole form object into session something like that.
I appriciate if someone can provide some sample code
--
Regards
On 8/11/05, Rick Root [EMAIL PROTECTED] wrote:
Asim Manzur wrote:
Hi,
What is the easiest way to take all the form variables (probably loop over)
and put it on the session.
or maybe put the whole form object into session something like that.
I appriciate if someone can provide some
IIRC I ran into that vary problem. Session.form = form does indeed just create
a reference and I believe it caused me problems. Session.form =
duplicate(form) does create a deep copy and is the solution I came to use, I
believe.
Sorry for the imprecise details. Hectic day, oracle database
Just ran a quick test to confirm and it does seem that cfset
session.myForm = form / creates a copy by reference...and it will not
persist beyond the form's action page.
Doing a cfdump var=#session# after the action page shows that the
structure key still exists...but it contains an empty
Doing a cfdump var=#session# after the action page shows that the structure
key still exists...but it contains an empty structure.
If you still want to play, you might want to see what happens if you create
another form and action. I think I remember the CF apparently uses the same
memory
If it's truly a reference, and not a deep copy, then it should. I'm curious
too...
Dave
-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 11, 2005 3:26 PM
To: CF-Talk
Subject: RE: FORM scope into SESSION
Doing a cfdump var=#session# after
Thank you guys, I used cfset session.myForm = form and it works great.
Thanks alot.
Hi,
What is the easiest way to take all the form variables (probably loop
over) and put it on the session.
or maybe put the whole form object into session something like that.
I appriciate if someone
Asim
You probably want that to be session.form = duplicate(form). Otherwise you
will be losing the data once you leave the action page. And if you don't want
the data to persist beyond this page why put it in session scope.
--
Ian Skinner
Web Programmer
BloodSource
On 8/11/05, Asim Manzur [EMAIL PROTECTED] wrote:
Thank you guys, I used cfset session.myForm = form and it works great.
Thanks alot.
Didn't we determine that that would NOT work great past the form's action page?
Hi,
What is the easiest way to take all the form variables (probably
to potential issues later on as
mentioned in other posts.
Dave
-Original Message-
From: Asim Manzur [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 11, 2005 3:50 PM
To: CF-Talk
Subject: Re: FORM scope into SESSION
Thank you guys, I used cfset session.myForm = form and it works great
I wondered about that, too. Thanks for clarifying.
-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 11, 2005 2:18 PM
To: CF-Talk
Subject: RE: FORM scope into SESSION
IIRC I ran into that vary problem. Session.form = form does indeed just
create
16 matches
Mail list logo