FORM scope into SESSION

2005-08-11 Thread Asim Manzur
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,

RE: FORM scope into SESSION

2005-08-11 Thread Dawson, Michael
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

Re: FORM scope into SESSION

2005-08-11 Thread Charlie Griefer
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

RE: FORM scope into SESSION

2005-08-11 Thread Dave.Phillips
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

Re: FORM scope into SESSION

2005-08-11 Thread Rick Root
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 =

Re: FORM scope into SESSION

2005-08-11 Thread Barney Boisvert
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

Re: FORM scope into SESSION

2005-08-11 Thread Charlie Griefer
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

RE: FORM scope into SESSION

2005-08-11 Thread Ian Skinner
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

Re: FORM scope into SESSION

2005-08-11 Thread Charlie Griefer
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

RE: FORM scope into SESSION

2005-08-11 Thread Ian Skinner
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

RE: FORM scope into SESSION

2005-08-11 Thread Dave.Phillips
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

Re: FORM scope into SESSION

2005-08-11 Thread Asim Manzur
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

RE: FORM scope into SESSION

2005-08-11 Thread Ian Skinner
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

Re: FORM scope into SESSION

2005-08-11 Thread Charlie Griefer
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

RE: FORM scope into SESSION

2005-08-11 Thread Dave.Phillips
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

RE: FORM scope into SESSION

2005-08-11 Thread Dawson, Michael
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