Solved

How to make a shoppingcard

Posted on 2011-09-21
4
178 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
  • 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Where to begin studying? 5 64
Exception in Log4Net 1 18
Check if number is currency 15 29
Iterate a dictionnary to change values 4 23
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

707 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now