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

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 58849
interpreted = N
texte = Hi Terry, Thanks.. How do you handle cookies turned off then? I have a line that redirects if a cart can't be set, and I need the redirect to test for it (before adding) becuase the cookie is set client side. Donovan Terry Wilson wrote: > Donovan, > > I carry the cart # in a cookie too. You don't need step 3. On the first > add item, there's no cart cookie, so go ahead and set the cookie, create > the cart and add the first item, all in one page. Since the cart is new, > the fact that there's no cookie for it is not relevant because you're > generating a new cart number anyway. The next time they add an item, the > cookie check will find the cart value and you can go from there. > > Maybe killing the redirect will solve your problem. > > Terry > >> The basic steps when adding an item to a cart are: >> 1. check for cookie >> 2. if not there, setcookie >> 3. redirect to that same page (cart page) carrying action and SKU. >> 4. add the item. > > > > ------------------------------------------------------------- > 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/ > -- =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)
Hi Terry, Thanks.. How do you handle cookies turned off then? I have a line that redirects if a cart can't be set, and I need the redirect to test for it (before adding) becuase the cookie is set client side. Donovan Terry Wilson wrote: > Donovan, > > I carry the cart # in a cookie too. You don't need step 3. On the first > add item, there's no cart cookie, so go ahead and set the cookie, create > the cart and add the first item, all in one page. Since the cart is new, > the fact that there's no cookie for it is not relevant because you're > generating a new cart number anyway. The next time they add an item, the > cookie check will find the cart value and you can go from there. > > Maybe killing the redirect will solve your problem. > > Terry > >> The basic steps when adding an item to a cart are: >> 1. check for cookie >> 2. if not there, setcookie >> 3. redirect to that same page (cart page) carrying action and SKU. >> 4. add the item. > > > > ------------------------------------------------------------- > 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/ > -- =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:

Same Table Opened Twice (2003) international time (1997) Problems passing [SKU] with $Replace in 2.0 (1997) I give up!! (1997) Email template names (1997) Unique SKUs (2000) Emailer setup (1997) Help formatting search results w/ table (1997) Signal Raised Error (1997) Anyone selling 4.5 NT License? (2003) Replto in [SendMail] (2000) Authenticating users without dialog box (1997) WebCatalog [FoundItems] Problem - AGAIN - (1997) WebCat on 10.0.4 - iTools 6.0 (2001) many-to-one problem (1998) [OT] "&" char in Flash animation (2006) Help! WebCat2 bug (1997) [WebDNA] writing pdfs on the fly (Avery labels #5160) (2010) FlushDatabase Suggestion (1998) Strange errors in error log (1998)