Forum Moderators: DixonJones
I've been using a 20 character random alpha numeric cookie to track unique visitors for the past few months. My estimation was that there were 36^20 combinations (26 alpha + 10 numeric, with 20 characters).
So that's 13,367,494,538,843,734,067,838,845,976,576 (13 gajillion) combinations. I thought i was safe to use a generate a number like this for each visitor.
But it turns out, no, these numbers are not even close to unique. Many visitors each day end up with the same "random" codes. They happen at different times of the day - i thought perhaps it was a problem with the random function in asp?
What the heck? Where's my math wrong here? I suppose i'll go to a GUID - but is that going to work?
Thx,
WDSF
The Unix timestamp was a practical seed when I dealt with these kinds of things. I'm sure asp has some kind of numerical date representation that you could use if this is in fact the problem.
Not sure if I've explained this well or not... If you have more questions, ask away.