Presumably you are doing something like so...

<cfset session.myvariable = form />
<cflocation url="foo.cfm" />

I have not tested it, but I am guessing that you are "loosing" the session
variables because you are creating a _reference_ to the form scope.  When
you redirect, the form scope is now empty, and therefore, any and all
references to it will be empty.  To create a session variable that actually
holds the *value* (rather than the reference), use duplicate().

<cfset session.myvariable = duplicate(form) />
<cflocation url="foo.cfm" />

HTH


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342171
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to