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

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 58860
interpreted = N
texte = Donovan, I take the simple approach. I assume everyone has cookies enabled. If not, there's text telling them they have to be enabled. For the fraction of a percent of people that don't want to turn on cookies, they'll just have to email me if they want to buy something. Check out one of my sites at http://www.terryfic.com/photo/ and try the cart to see how I have it set up. Terry >Message-ID: <40FFBE0E.3020100@euca.us> >Date: Thu, 22 Jul 2004 08:15:58 -0500 >From: Donovan Brooke >Subject: Re: Q: for those who use Cookies for sessions? >Content-Type: text/plain; charset=us-ascii; format=flowed >Content-Transfer-Encoding: 7bit > >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/ 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)
Donovan, I take the simple approach. I assume everyone has cookies enabled. If not, there's text telling them they have to be enabled. For the fraction of a percent of people that don't want to turn on cookies, they'll just have to email me if they want to buy something. Check out one of my sites at http://www.terryfic.com/photo/ and try the cart to see how I have it set up. Terry >Message-ID: <40FFBE0E.3020100@euca.us> >Date: Thu, 22 Jul 2004 08:15:58 -0500 >From: Donovan Brooke >Subject: Re: Q: for those who use Cookies for sessions? >Content-Type: text/plain; charset=us-ascii; format=flowed >Content-Transfer-Encoding: 7bit > >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/ Terry Wilson

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:

price carry over (1997) RE: WebCatalog NT beta 18 now available (1997) WCS Newbie question (1997) How to sent up OS X server to use localhost (2003) [OT] HTML Email in Lotus Notes (2005) Summing a field full of numbers ... (1997) Re:Password Authentication - request example (1998) Database Helper missing? (2000) [Sum] function? (1997) Webcat4.5 on Windows Apache2 (2005) Emailer Set Up (1997) WebCat2b12plugin - [search] is broken ... not! (1997) Configuring E-mail (1997) [returnraw] and form variables (1998) Associative lookup style? + bit more (1997) WebCat & Liststar ... & Rumpus, too! (1997) WebCatalog for Postcards ? (1997) showif/hideif 4.0 (2000) headers (2000) Order not created error (never mind) (1997)