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:
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:
Show shoppingcart after remove last item (1997)
Two submit buttons ? (1997)
[WebDNA] FileUpload Issue ... cont. (2012)
WriteFile Command (1998)
A few questions. . . (1997)
.htaccess to make WebDNA serve HTML (2007)
Newbie Tax Question (1997)
bugs w/! &/or bad scripting??? (1997)
FYI: virus alert (1996)
[WebDNA] sort parameters in search (2015)
[WebDNA] Server load (2008)
WebCatalog 2.0 b 15 mac (1997)
WebCatalog [FoundItems] Problem - LONG - (1997)
YACBQ.....(Yet another checkbox question) (2000)
maximu values for sendmail! (1997)
What am I missing (1997)
WC2.0 Memory Requirements (1997)
Explorer 3.0 (1997)
[Price] (1997)
All questions are welcome on this list (1997)