just as the code below says except change it to Session from request same
code.



> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 24, 2002 3:30 PM
> To: CF-Talk
> Subject: Re: RE: ColdFusion MX and Session Variables
> 
> 
> Are you setting the session variable back to zero before you put 
> another value in there?
> 
> ----- Original Message -----
> From: Nathan Stanford <[EMAIL PROTECTED]>
> Date: Wednesday, July 24, 2002 2:21 pm
> Subject: RE: ColdFusion MX and Session Variables
> 
> > That is not the answer Next?
> > 
> > 
> > 
> > > -----Original Message-----
> > > From: Joe Eugene [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, July 24, 2002 3:18 PM
> > > To: CF-Talk
> > > Subject: Re: ColdFusion MX and Session Variables
> > > 
> > > 
> > > Check your session locks...
> > > 
> > > Joe
> > > ----- Original Message -----
> > > From: "Nathan Stanford" <[EMAIL PROTECTED]>
> > > To: "CF-Talk" <[EMAIL PROTECTED]>
> > > Sent: Wednesday, July 24, 2002 4:10 PM
> > > Subject: ColdFusion MX and Session Variables
> > > 
> > > 
> > > > 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>
> > > > 
> > > > <img src="/oreckdealer/images/icons/dealer_cart.gif" border="0"
> > > > alt="View Cart">
> > > >       
> > > >       #request.cartquantity# Items 
> > > #dollarformat(request.carttotal)# Total
> > > >
> > > > </cfoutput>
> > > >
> > > > </cfif>
> > > > 
> > > 
> > 
> 
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
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

Reply via email to