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 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 not talk
to my website, causing all sorts of problems.  

HTH

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214644
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: FORM scope into SESSION

2005-08-11 Thread Dave.Phillips
Asim,

Use this (same thing I posted earlier, but seems to have been missed):


  


Make sure you use the CFLOCK to avoid potential race conditions.  If you leave 
it the way it is, you will open yourself 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  and it works great.

 Thanks alot.
**
The information contained in this message, including attachments, may contain 
privileged or confidential information that is intended to be delivered only to 
the 
person identified above. If you are not the intended recipient, or the person 
responsible for delivering this message to the intended recipient, ALLTEL 
requests 
that you immediately notify the sender and asks that you do not read the 
message or its 
attachments, and that you delete them without copying or sending them to anyone 
else. 


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214638
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


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  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 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,
> >
> 
> 
> 

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214632
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


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
www.BloodSource.org
Sacramento, CA
 
"C code. C code run. Run code run. Please!"
- Cynthia Dunning

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message. 




~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214629
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: FORM scope into SESSION

2005-08-11 Thread Asim Manzur
Thank you guys, I used  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 can provide some sample code
> -- 
> Regards,
>


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214624
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


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  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 for all forms.  So if you create the reference session.form point it to 
one form, move on and create and post a new form, session.form will then point 
to the new forms data.

I think! Maybe!!

--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA
 
"C code. C code run. Run code run. Please!"
- Cynthia Dunning

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message. 






~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214616
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: FORM scope into SESSION

2005-08-11 Thread Ian Skinner
Doing a  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 for all forms.  So if you create the reference session.form point it to 
one form, move on and create and post a new form, session.form will then point 
to the new forms data.

I think! Maybe!!

--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA
 
"C code. C code run. Run code run. Please!"
- Cynthia Dunning

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message. 




~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214613
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: FORM scope into SESSION

2005-08-11 Thread Charlie Griefer
Just ran a quick test to confirm and it does seem that  creates a copy by reference...and it will not
persist beyond the form's action page.

Doing a  after the action page shows that the
structure key still exists...but it contains an empty structure.

On 8/11/05, Ian Skinner <[EMAIL PROTECTED]> wrote:
> 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 not talk to my 
> website, causing all sorts of problems.
> 
> HTH
> 
> 
> --
> Ian Skinner
> Web Programmer
> BloodSource
> www.BloodSource.org
> Sacramento, CA
> 
> "C code. C code run. Run code run. Please!"
> - Cynthia Dunning
> 
> Confidentiality Notice:  This message including any
> attachments is for the sole use of the intended
> recipient(s) and may contain confidential and privileged
> information. Any unauthorized review, use, disclosure or
> distribution is prohibited. If you are not the
> intended recipient, please contact the sender and
> delete any copies of this message.
> 
> 
> 
> 
> 

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214612
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


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 not talk to my 
website, causing all sorts of problems.  

HTH


--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA
 
"C code. C code run. Run code run. Please!"
- Cynthia Dunning

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message. 




~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214609
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


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 sample code
> 
> doesn't this work?
> 
> 

Michael Dawson posted the same thing above...and it got me thinking.  Dunno :)

Would it create a deep copy?  or would it just create a copy by
reference?  and if the latter...would it be available beyond the
form's action page?

(i suppose i could write some code and figure it out...easier to wait
for somebody smarter than me to answer tho) :)

-- 
Charlie Griefer


"...All the world shall be your enemy, Prince with a Thousand Enemies, 
and whenever they catch you, they will kill you. But first they must catch 
you, digger, listener, runner, prince with a swift warning. 
Be cunning and full of tricks and your people shall never be destroyed."

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214608
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: FORM scope into SESSION

2005-08-11 Thread Barney Boisvert
or , for the former.

On 8/11/05, Dawson, Michael <[EMAIL PROTECTED]> wrote:
> 
> 
> 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.
> or maybe put the whole form object into session something like that.
>  I appriciate if someone can provide some sample code
> --
> Regards,
> 
> 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214606
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


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?



Rick



~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214603
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: FORM scope into SESSION

2005-08-11 Thread Dave.Phillips




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 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,




~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214604
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: FORM scope into SESSION

2005-08-11 Thread Charlie Griefer
easiest?


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 appriciate if someone can provide some sample code
> --
> Regards,
> 
> 
> 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214605
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: FORM scope into SESSION

2005-08-11 Thread Dawson, Michael


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.
or maybe put the whole form object into session something like that.
 I appriciate if someone can provide some sample code
--
Regards,

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214601
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


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,


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214600
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54