Re: Carts & cookies
This WebDNA talk-list message is from 1999
It keeps the original formatting.
numero = 23238
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.No.1. Remove the cookie when purchase is done2. The should expire at the end of the browser session(on the other hand - there's other problems with cookies, so personally Iprefer the cart approach). ************************************************************* Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 Ljusa Ideer AB S-211 37 Malmoe Fax +46 40 97 99 77 Sweden http://www.ljusaideer.se
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.No.1. Remove the cookie when purchase is done2. The should expire at the end of the browser session(on the other hand - there's other problems with cookies, so personally Iprefer the cart approach). ************************************************************* Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 Ljusa Ideer AB S-211 37 Malmoe Fax +46 40 97 99 77 Sweden http://www.ljusaideer.se
Christer Olsson
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:
[SHOWIF AND/OR] (1997)
Unexpected error (1997)
Restoring textarea stored in header (1998)
cookies and [returnraw] (1997)
version 2 for NT (1997)
cart (1997)
Search (1997)
Help with Grep exchange (2005)
Problem with Formulas.db (1998)
docs for WebCatalog2 (1997)
exclusive db lock with webcat-3 ? (2000)
PCS Frames (1997)
Emailer Error 472? (2004)
A multi-processor savvy WebCatalog? (1997)
decrypt trouble - solved (2006)
Nested searches (1998)
Month from number (2002)
webcat in the subject line - SMSI (2002)
WebCatalog/WebMerchant 2.1 (1998)
SKU's (2000)