Re: cart file creation
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 52908
interpreted = N
texte = Terry Wilson wrote:> Isn't the [cart] value based on the present point in time (seems like > the algorithm changed between version 2 and 3)? I too would be > interested in knowing how to decode this long number. Search the archive; this has been discussed before. The cart is the number of seconds since the Unix epoch, plus a unique sequence number for that server to ensure that multiple cart requests in the same second are still unique. It is, however, NOT a number; it may vary in length due to that sequence number.> Also, if there's a > timestamp embedded in there, perhaps SM could craft a WebDNA tag to > decode the date and time. And wouldn't it be spiffy if it sorted...It does sort in order of creation of the cart (not necessarily order of creation of the file, since that doesn't happen until something is stored). But it sorts as ASCII text, not as a number (see above).NOTE: for all of those wanting to create the cart file at the same time as cart value, just store something in the cart on every page (one of the headers). You can use this to track what page the user visited last, for example. It is a performance hit, because cart's write to disk immediately if you store something.John-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4501 Forbes BoulevardSuite HLanham, MD 20706301-459-3366 x.5010fax 301-429-5748-------------------------------------------------------------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:
Terry Wilson wrote:> Isn't the [cart] value based on the present point in time (seems like > the algorithm changed between version 2 and 3)? I too would be > interested in knowing how to decode this long number. Search the archive; this has been discussed before. The cart is the number of seconds since the Unix epoch, plus a unique sequence number for that server to ensure that multiple cart requests in the same second are still unique. It is, however, NOT a number; it may vary in length due to that sequence number.> Also, if there's a > timestamp embedded in there, perhaps SM could craft a WebDNA tag to > decode the date and time. And wouldn't it be spiffy if it sorted...It does sort in order of creation of the cart (not necessarily order of creation of the file, since that doesn't happen until something is stored). But it sorts as ASCII text, not as a number (see above).NOTE: for all of those wanting to create the cart file at the same time as cart value, just store something in the cart on every page (one of the headers). You can use this to track what page the user visited last, for example. It is a performance hit, because cart's write to disk immediately if you store something.John-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4501 Forbes BoulevardSuite HLanham, MD 20706301-459-3366 x.5010fax 301-429-5748-------------------------------------------------------------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/
John Peacock
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:
SKU (1997)
Tiny Store / Checkboxes (1998)
Help name our technology! (1997)
WCf2 and nested tags (1997)
Emailer (1997)
webCatalog and Stocks (1998)
Protect vs Authenicate (1997)
WebCat2b13MacPlugIn - syntax to convert date (1997)
CART question (2004)
!!!!!!!!!!String Search!!!!!!!!!!!!!!!!!! (2001)
MacAuthorize hub, no modal password dialog? (1997)
WebCat editing, SiteGuard WAS:SiteAssociative lookup style? (1997)
WebCatalog [FoundItems] Problem - LONG - (1997)
Display [price] in banner ad (1998)
[SHOWIF AND/OR] (1997)
WebCat2b12 forgets serial # (1997)
Feature Request: DB Field manipulation (1998)
More on the email templates (1997)
system crashes, event log (1997)
Form Results (2000)