?
Solved

How to make a shoppingcard

Posted on 2011-09-21
4
Medium Priority
?
192 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
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…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

752 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