Re: Cart/Cookie question
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 62082
interpreted = N
texte = >> If the numerical value is always a difference of one, how about > mathematically adding 1 onto the cart number in the cookie? It > doesn't solve the underlying problem, but it might do as a workaround.>> DennisCart doesn't behave mathematically, so this doesn't actually work (I remember Peacock mentioning this once, but I tried it myself anyway.) Try it at home, kids - add "1" to your [cart] value and see what you get!> What is the value of the text/math variable that you set before the > cookie? Is it the same cart number as the cookies or 1 greater?It's the same as the cookie. First, I simply tried setting the cookie to equal [cart]. hen THAT didn't match the actually cart number, I tried setting it as a varaible first - I tried it as math and as text. Didn't matter. The first time the cart is set on that page, it is one less than the actual cart number.>> Just sounds like your cart isn't setting properly before the cookie, > and I'm assuming that using [cart] in a cookie wont set it either - so > it isn't getting set until after the setcookie code.That's what it would seem like to me, too, but since I *do* get a cart value for my cookie, this doesn't make sense.>> What happens if you throw a plain "[cart]" at the top of the page for > testing purposes?>> GJKGood idea. I'll try this and report back Monday. Thanks for the help, guys.Incidentally, we're running OS 10.3 (not server) on a dual 1.8 gHz G5 with Webstar 6.01 and Webstar 5.-----Patrick Junkroskihttp://www.vsm.net239.642.0304-------------------------------------------------------------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:
>> If the numerical value is always a difference of one, how about > mathematically adding 1 onto the cart number in the cookie? It > doesn't solve the underlying problem, but it might do as a workaround.>> DennisCart doesn't behave mathematically, so this doesn't actually work (I remember Peacock mentioning this once, but I tried it myself anyway.) Try it at home, kids - add "1" to your [cart] value and see what you get!> What is the value of the text/math variable that you set before the > cookie? Is it the same cart number as the cookies or 1 greater?It's the same as the cookie. First, I simply tried setting the cookie to equal [cart]. hen THAT didn't match the actually cart number, I tried setting it as a varaible first - I tried it as math and as text. Didn't matter. The first time the cart is set on that page, it is one less than the actual cart number.>> Just sounds like your cart isn't setting properly before the cookie, > and I'm assuming that using [cart] in a cookie wont set it either - so > it isn't getting set until after the setcookie code.That's what it would seem like to me, too, but since I *do* get a cart value for my cookie, this doesn't make sense.>> What happens if you throw a plain "[cart]" at the top of the page for > testing purposes?>> GJKGood idea. I'll try this and report back Monday. Thanks for the help, guys.Incidentally, we're running OS 10.3 (not server) on a dual 1.8 gHz G5 with Webstar 6.01 and Webstar 5.-----Patrick Junkroskihttp://www.vsm.net239.642.0304-------------------------------------------------------------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/
Patrick Junkroski
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:
Multithreading of [replace] (1999)
[WebDNA] paypal FINALLY!!!! (2009)
WebCatalog for Postcards ? (1997)
CommitDatabase vs. CloseDatabase (2001)
Webcatalog 4.0 - When will we be able to beta test it? (2000)
textA (1998)
Re:no [search] with NT (1997)
Classified Ads 4 Sale (1998)
[convertChars] and in a textarea on a form (1998)
RSH [shell] calls. (2004)
two of the same named db's open at once (1998)
includes and cart numbers (1997)
Download (1999)
Same DB Same Time (2004)
Just Testing (1997)
Odd Cart Behavior (1997)
email database file (2005)
Wait, I forgot something! (was authenticating a seconduser, the sequel) (1997)
PSC recommends what date format yr 2000??? (1997)
WebCatalog Work (2001)