Re: Q: for those who use Cookies for sessions?

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 58835
interpreted = N
texte = A bare bones look at the code (email linebreaks could happen): [!] form vars being passed in: action = add add_sku = [sku] [/!] [showif _[raw][param3][/raw]_^_[param3]_] [text]param3=[/text] [/showif] [showif _[raw][param4][/raw]_^_[param4]_] [text]param4=[/text] [/showif] [showif _[raw][action][/raw]_^_[action]_] [text]action=[param3][/text] [/showif] [showif _[raw][the_ID][/raw]_^_[the_ID]_] [text]the_ID=[param4][/text] [/showif] [showif _[raw][add_SKU][/raw]_^_[add_SKU]_] [text]add_SKU=[param4][/text] [/showif] [!] Getting Cart [/!] [math show=F]error=0[/math] [showif [getcookie name=the_session]=] [SETCOOKIE name=the_session&value=[cart]&path=/&domain=your.domain.com] [redirect url=[url]http://your.domain.com/checkout/[param2]/[action]/[if "[action]"="addit"][then][add_SKU][/then][else][the_ID][/else][/if]/[/url]] [/showif] [text]cart=[getcookie name=the_session][/text] [showif [getcookie name=the_session]=] [redirect url=[url]http://your.domain.com/message/enablecookies/[/url]] [/showif] [showif [action]=addit] [text]NO_IN_INV=[LOOKUP db=admin/products.db&Value=[add_SKU]&lookInField=SKU&returnField=NO_INVENTORY][/text] [text]the_ID=[LOOKUP db=admin/products.db&Value=[add_SKU]&lookInField=SKU&returnField=ID][/text] [showif [NO_IN_INV]>0] [addlineitem cart=[cart]&db=admin/products.db&SKU=[add_SKU]]TEXTD=[the_ID]&TEXTC=[newID]&Password=[pricepass][/addlineitem] [/showif] [/showif] [!] Display CART [/!] [!]*********************************************************[/!] [!] ***** this shows the correct (only one added) cart contents *****[/!] [!]*********************************************************[/!] [orderfile cart=[cart]] [lineitems] [sku], [quantity] [/lineitems] [/orderfile] Then I click on any link from this page and the cart now contains two of that product :-(.. not sure if it is happening bfore or after clicking.. (my next test). Any help would be appreciated as I don't get paid until this bug is squished ;-) Donovan -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Eucalyptus Design <-Web Development (specializing in eCommerce), -> <-Graphic Design, and Pre-Press Consultation -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design N2862 Summerville Park Rd. Lodi, WI 53555 PH:> 1.608.592.3567 Web:> http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Q: for those who use Cookies for sessions? ( Donovan Brooke 2004)
  2. Re: Q: for those who use Cookies for sessions? ( Terry Wilson 2004)
  3. Re: Q: for those who use Cookies for sessions? ( Clint Davis 2004)
  4. Re: Q: for those who use Cookies for sessions? ( Donovan Brooke 2004)
  5. Re: Q: for those who use Cookies for sessions? ( Donovan Brooke 2004)
  6. Re: Q: for those who use Cookies for sessions? ( Donovan Brooke 2004)
  7. Re: Q: for those who use Cookies for sessions? ( Larry Hewitt 2004)
  8. Re: Q: for those who use Cookies for sessions? ( Donovan Brooke 2004)
  9. Re: Q: for those who use Cookies for sessions? ( Donovan Brooke 2004)
  10. Re: Q: for those who use Cookies for sessions? ( Terry Wilson 2004)
  11. Re: Q: for those who use Cookies for sessions? ( devaulw@onebox.com 2004)
  12. Re: Q: for those who use Cookies for sessions? ( Donovan Brooke 2004)
  13. Re: Q: for those who use Cookies for sessions? ( Donovan Brooke 2004)
  14. Re: Q: for those who use Cookies for sessions? ( Donovan Brooke 2004)
  15. Re: Q: for those who use Cookies for sessions? ( Donovan Brooke 2004)
  16. Q: for those who use Cookies for sessions? ( Donovan Brooke 2004)
A bare bones look at the code (email linebreaks could happen): [!] form vars being passed in: action = add add_sku = [sku] [/!] [showif _[raw][param3][/raw]_^_[param3]_] [text]param3=[/text] [/showif] [showif _[raw][param4][/raw]_^_[param4]_] [text]param4=[/text] [/showif] [showif _[raw][action][/raw]_^_[action]_] [text]action=[param3][/text] [/showif] [showif _[raw][the_ID][/raw]_^_[the_ID]_] [text]the_ID=[param4][/text] [/showif] [showif _[raw][add_SKU][/raw]_^_[add_SKU]_] [text]add_SKU=[param4][/text] [/showif] [!] Getting Cart [/!] [math show=F]error=0[/math] [showif [getcookie name=the_session]=] [SETCOOKIE name=the_session&value=[cart]&path=/&domain=your.domain.com] [redirect url=[url]http://your.domain.com/checkout/[param2]/[action]/[if "[action]"="addit"][then][add_SKU][/then][else][the_ID][/else][/if]/[/url]] [/showif] [text]cart=[getcookie name=the_session][/text] [showif [getcookie name=the_session]=] [redirect url=[url]http://your.domain.com/message/enablecookies/[/url]] [/showif] [showif [action]=addit] [text]NO_IN_INV=[LOOKUP db=admin/products.db&Value=[add_SKU]&lookInField=SKU&returnField=NO_INVENTORY][/text] [text]the_ID=[LOOKUP db=admin/products.db&Value=[add_SKU]&lookInField=SKU&returnField=ID][/text] [showif [NO_IN_INV]>0] [addlineitem cart=[cart]&db=admin/products.db&SKU=[add_SKU]]TEXTD=[the_ID]&TEXTC=[newID]&Password=[pricepass][/addlineitem] [/showif] [/showif] [!] Display CART [/!] [!]*********************************************************[/!] [!] ***** this shows the correct (only one added) cart contents *****[/!] [!]*********************************************************[/!] [orderfile cart=[cart]] [lineitems] [sku], [quantity] [/lineitems] [/orderfile] Then I click on any link from this page and the cart now contains two of that product :-(.. not sure if it is happening bfore or after clicking.. (my next test). Any help would be appreciated as I don't get paid until this bug is squished ;-) Donovan -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Eucalyptus Design <-Web Development (specializing in eCommerce), -> <-Graphic Design, and Pre-Press Consultation -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design N2862 Summerville Park Rd. Lodi, WI 53555 PH:> 1.608.592.3567 Web:> http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Donovan Brooke

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

simple but wierd [shownext] behavior?? (2000) There's a bug in the math context ... (1997) Search Engines (2002) multiple replace sku data (2003) Suggestions for Topics to be covered in an Advanced WebDNACourse... (1998) Country & Ship-to address & other fields ? (1997) emailer (1997) PSC recommends what date format yr 2000??? (1997) Odd search results, or odd programmer, not sure which... (2002) 5.0 Pricing (2003) Housekeeping question (1999) Banner Ad example (Typhoon) and WebCatalog (1997) [shownext] (1998) Webcat2, WebCommerce, Mod 10 etc. (1997) Multi-processor Mac info ... (1997) b12 cannot limit records returned and more. (1997) One Hour Email (2002) Triggers (1999) 4.5 on Apache 2 (2005) hmmm (2006)