Re: Session Number
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 17131
interpreted = N
texte = >As well as the shopping cart I would like to have a session number>follow users around the site (max integer is 99). I am aware that I>could just use the last two digits of the cart number but if I did that,>it is possible that two people could be going around the site with the>same session number.This is indeed why cart numbers are so large, to guarantee uniqueness. Youwill always run the risk of having two people with the same session number,no matter how you dole them out. But I don't know your situation, so maybethat's OK in your case.I would start with a page counter concept (like MasterCounter from ourexamples page), and modify it slightly so that when the counter hits 99 itgets reset back to 0.Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ====Pacific Coast Software | WebCatalog, WebMerchant,11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster,San Diego, CA 92128 | Typhoon619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>As well as the shopping cart I would like to have a session number>follow users around the site (max integer is 99). I am aware that I>could just use the last two digits of the cart number but if I did that,>it is possible that two people could be going around the site with the>same session number.This is indeed why cart numbers are so large, to guarantee uniqueness. Youwill always run the risk of having two people with the same session number,no matter how you dole them out. But I don't know your situation, so maybethat's OK in your case.I would start with a page counter concept (like MasterCounter from ourexamples page), and modify it slightly so that when the counter hits 99 itgets reset back to 0.Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ====Pacific Coast Software | WebCatalog, WebMerchant,11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster,San Diego, CA 92128 | Typhoon619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/
Grant Hulbert
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:
ListFiles and .DS_Store (2004)
WebCat cannot handle compatible search parameters? (1997)
all records returned. (1997)
Stinkin' [Referrer] (1998)
[WebDNA] Problem to creat a cart (2011)
[include] and v.email (1998)
Quit revisited (1997)
Form Weirdness (2002)
WebCat B13 Mac CGI -- Frames question (1997)
Protecting webdelivery (1997)
Webmerch tags? (1998)
Include vs. lookup? (1998)
Possible to reset Linux file permissions w/in webcat [shell] ? (2000)
Webcatalog server support (1997)
and passing to a cart (1997)
Tech support (2000)
Change Subtotal (2000)
select menus & database design (1998)
HTML encoding in URLs (1997)
Protect tag for large groups? (1999)