php - Login system with shopping cart -


For exmaple, we have a site that sells car wheels I am not registered there and the wheel in the shopping cart I add (this is stored in cookie ) After entering, I get this wheel in my account shopping list.

What's wrong: What if someone else added another wheel from my computer and I will get it in my shopping list after login.

I do not understand how to solve this situation.

If you use a cookie to bind a shopping cart to a user, you have a problem Not because cookies are typically specific to a fixed browser on a particular account on a computer.

Comments

Popular posts from this blog

android - How can I execute default sms app? -

jquery .css('text-decoration') doesn't work from parents -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -