Creating a unique user ID for shopping card!!


  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, you can see that after the home.html : 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.

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.
print "<input type=hidden name=id value=",time,$$,">";

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
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.


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

From novice to tech pro — start learning today.