views:

12

answers:

0

i have a user system i wrote addin a session("userid") to identify a logged in user.

but i want to allow adding stuf to the shopping cart. so upon press of "add to cart" a new order is started in my database. but how can i tie the current unlogged user to that order number?

i was thinking of logging some session("unknownuserid") and bind it to an md5 of the user ip. but i am afraid i might get same unknowuserid for more than 1 user..

what do u think? may be a better idea? :)