Re: Carts & cookies
This WebDNA talk-list message is from 1999
It keeps the original formatting.
numero = 23233
interpreted = N
texte = >We need three newish cart tags, [&cart] [?cart] [input-cart]>these would all look for the presence of a cart in a cookie named cart>and hide themselves if their presence was not needed, and they would fill in>just like the above examples if a browser failed to send back a cart value, but>WebCatalog would be programmed (possibly with a user selectable setting to turn>this off?) to attempt to set a cookie with the current cart on any page request>that didn't include the cart cookie.Sounds interesting, but this will create problems ...>If WebCatalog detects a cookie named cart, it uses that value>automatically for all cart tags that may be needed on that page.This is exactly where the problems will come in ...This technique would result in re-using a previously-used cart values for a new and completely different carts when the same user happens to return to the site to create a new order -- even if the previous order has already been completed.That's a 'bad thing' ... :(One reason for passing cart values in URLs and forms is that each cart value is absolutely unique, there's never any duplication of the cart value from one order to another. The technique you're suggesting would destroy the uniqueness of a cart value by re-using the old ones stored in cookies.I like the basic concept of allowing shoppers to come back and finish their shopping later (without their having to enter a username or password to re-open an existing cart), but there's got to be some other way to do it ... one that truly preserves the uniqueness of each and every cart *without* re-using old cart values.Sincerely,Ken Grome
Associated Messages, from the most recent to the oldest:
>We need three newish cart tags, [&cart] [?cart] [input-cart]>these would all look for the presence of a cart in a cookie named cart>and hide themselves if their presence was not needed, and they would fill in>just like the above examples if a browser failed to send back a cart value, but>WebCatalog would be programmed (possibly with a user selectable setting to turn>this off?) to attempt to set a cookie with the current cart on any page request>that didn't include the cart cookie.Sounds interesting, but this will create problems ...>If WebCatalog detects a cookie named cart, it uses that value>automatically for all cart tags that may be needed on that page.This is exactly where the problems will come in ...This technique would result in re-using a previously-used cart values for a new and completely different carts when the same user happens to return to the site to create a new order -- even if the previous order has already been completed.That's a 'bad thing' ... :(One reason for passing cart values in URLs and forms is that each cart value is absolutely unique, there's never any duplication of the cart value from one order to another. The technique you're suggesting would destroy the uniqueness of a cart value by re-using the old ones stored in cookies.I like the basic concept of allowing shoppers to come back and finish their shopping later (without their having to enter a username or password to re-open an existing cart), but there's got to be some other way to do it ... one that truly preserves the uniqueness of each and every cart *without* re-using old cart values.Sincerely,Ken Grome
Kenneth Grome
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:
(1997)
Errata: WCS Newbie question (1997)
RequiredFields notes ... (1997)
Separate SSL Server (1997)
docs for WebCatalog2 (1997)
Pithy questions on webcommerce & siteedit (1997)
Multiple fields on 1 input (1997)
NumFound (1999)
A multi-processor savvy WebCatalog? (1997)
WebCat editing, SiteGuard & SiteEdit (1997)
Configuration Q (1998)
Credit Card not accepted (1998)
Roundup function? (1997)
Sort Order on a page search (1997)
switching users (1998)
WebTen and WebCat (1997)
Limit picture size on upload (2005)
my SOS last week... (1996)
Blocking form spam (2006)
Multiple condition showif's (2004)