Solved

How to make a shoppingcard

Posted on 2011-09-21
4
191 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 500 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

More Than Just A Video Library

Train for your certification. Learn the latest DevOps tools. Grow your skillset to do better work.

At Linux Academy, we release new training modules every week so you'll always be up to date on the latest tech.

Question has a verified solution.

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

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
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…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

718 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