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:
[WebDNA] OS X mail server (2009)
PIXO Support (1997)
[shownext] and descending order (1997)
Authenticate (1997)
Math with Time (1997)
Item options w/ price adjustment (1997)
Any 4.5 to 5.0 upgrade gotchas? [OT] (2003)
[WebDNA] I'm stuck... :-( (2009)
Database access (2003)
(2000)
hidden databases (2000)
Today's suggestions - 2 More (1998)
E-mailer error codes (1997)
For those of you not on the WebCatalog Beta... (1997)
question: webmerchant connection (1997)
PCS Frames-Default page is solution! (1997)
WebCat2 - storing unformatted date data? (1997)
Hello??? (1997)
Variables for chat (1997)
payflowpro problem #2 (2003)