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 Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 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:

    
  1. Re: [WebDNA] Problem with excessive cart file creation (Daniel Meola 2011)
  2. Re: [WebDNA] Problem with excessive cart file creation (dbrooke 2011)
  3. Re: [WebDNA] Problem with excessive cart file creation (Kenneth Grome 2011)
  4. [WebDNA] Problem with excessive cart file creation (Daniel Meola 2011)
  5. Re: cart file creation ( Donovan 2003)
  6. Re: cart file creation ( John Peacock 2003)
  7. Re: cart file creation ( Terry Wilson 2003)
  8. Re: cart file creation ( Donovan 2003)
  9. Re: cart file creation ( "Scott Anderson" 2003)
  10. Re: cart file creation ( Stuart Tremain 2003)
  11. Re: cart file creation ( Donovan 2003)
  12. Re: cart file creation ( Brian Wachter 2003)
  13. Re: cart file creation ( Donovan 2003)
  14. Re: cart file creation ( Brian Wachter 2003)
  15. Re: cart file creation ( Donovan 2003)
  16. Re: cart file creation ( Brian Wachter 2003)
  17. Re: cart file creation ( Donovan 2003)
  18. cart file creation ( Brian Wachter 2003)
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 Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 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)