I've run into a situation where a cfparam is resetting the variable,
even though it already exists.  How could this happen?  Here's the
offending block of code:

<cfdump var="#session.userBean.getCampaignID()#">
<cfparam name="session.userBean"
default="#application.sessionGateway.getById(0)#" type="any" />
<br>
<cfdump var="#session.userBean.getCampaignID()#">
<cfabort>

When I run that (there's obviously more to the page than that :) ), I
get "25" on one line [the proper value] and "15" on the other [the
default value for the campaign ID]. But, I'm not sure why the
sessionGateway method is even being called, since the userBean
obviously exists.

Now, we did have a rollout last week (when this started happening)
that affected the sessionGateway file, but I'm not sure how that could
have affected it.

I've put in a workaround using NOT structKeyExists which seems to have
resolved it, but it just seems wrong. Sick and wrong.

Scott


-- 
-----------------------------------------
Scott Brady
http://www.scottbrady.net/

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305770
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to