ColdFusion MX and Session Variables...
ColdFusion MX on a Solaris 7 with Apache 1.3.26 Web Server
When I use Session Variables and set a total price to 527 the Session
variable would change Randomly too 1052 or 827 and other such numbers.
I took the exact same code and made them all Request Variables and it did
not change at all.
Why is this happening? Is this a know bug.
Code Below
====================================================================
<cfset request.cartquantity=0>
<cfset request.carttotal=0>
<cfquery name="qry_checkoutcart" datasource="#request.dsnSQL#">
SELECT *
FROM OreckDealerCart
WHERE OreckDealer_id = #session.dealer_id#
</cfquery>
<cfif qry_checkoutcart.recordcount eq 0>
<cfelse>
<cfset counter=0>
<cfoutput query="qry_checkoutcart">
<!--- removed AS400 Query here to get the price --->
<cfset price = price*100>
<cfset subtotal=#price#*#quantity#>
<cfset request.carttotal=#request.carttotal#+#subtotal#>
<cfset request.cartquantity=#request.cartquantity#+#quantity#>
</cfoutput>
<cfoutput>
<a href="index.cfm?fuseaction=checkout">
<img src="/oreckdealer/images/icons/dealer_cart.gif" border="0"
alt="View Cart">
</a>
#request.cartquantity# Items #dollarformat(request.carttotal)# Total
</cfoutput>
</cfif>
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists