Creating a unique user ID for shopping card!!

Hi,

  I am trying to create a shopping card that it will create a unique user for user ( for example: date+random number )when he tried to access to shopping card and no matter how many time he/she moved back and forwad , that unique number (just create one time ) and no allow keep assign unique id ( so it need to save in some place ) .

 Of course, the easy way...using cookies!! but my boss requested "no to use cookies", because some users disable the cookies in their browsers.

 So where or how to put the unique id assign for each user.

 Perfect example: Amazon ....www.amazon.com, you can see that after the home.html : http://www.amazon.com/exec/obidos/subst/home/home.html/002-8684941-3777048..appears the source id which it is unique and it will keep for u ..while you move back and forward.


 I would appreciate any help!!

 Thank you very much.


 Victor
canarioperlAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

canarioperlAuthor Commented:
Edited text of question.
0
ozoCommented:
print "<input type=hidden name=id value=",time,$$,">";
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CarnalitoCommented:
I use this one:
------
my @chars = (0 .. 9, 'A' .. 'Z', 'a' .. 'z');
($sessid  =  0 x (shift || 15)) =~ s/0/$chars[rand @chars]/ge;
------
where 15 is the length of the string.

Regs

Carnalito
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Perl

From novice to tech pro — start learning today.