Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to make a shoppingcard

Posted on 2011-09-21
4
Medium Priority
?
194 Views
Last Modified: 2013-12-17
Hi.

How do I easily make a shopping card. Only requirement is, that it has to be some kind of cookie based, so the shop remember the users basket - also the day after.

What is the best way? I am thinking something like:
Make a user session in global asa when a user enters the site.
when the user adds a product to basket, this operation is performed direct in the database.

Does anybody have a alternative idea?
0
Comment
Question by:bongii
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 17

Expert Comment

by:OriNetworks
ID: 36573259
The correct term is shopping cart. Is this for a class or a real business?
0
 

Author Comment

by:bongii
ID: 36576806
What du you mean by class?
Its for real business
0
 
LVL 17

Accepted Solution

by:
OriNetworks earned 2000 total points
ID: 36588803
By class i was asking if it was for a educational project. You may want to look at existing shopping cart packages to see how they work, such as ZenCart. It is not a good idea for a beginner to make shopping cart applications to be used in real world instances.

I would store user contents in a database that stores information about the users session and have a cookie written to the users computer that stores a session identifier and maybe some kind of validation or hash to prevent modifying cookie information to prevent hackers from impersonating another users session.
0
 

Author Comment

by:bongii
ID: 36592927
So... You wount use sessions. Only a cookie id? So i Will Make a cookie request ón every pake?
0

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question