473,382 Members | 1,225 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Best Way To Identify User / Shopping Cart

I was wondering what the best approach to handling a shopping cart was. My
concerns

1. Cookies not accepted (session variables not maintained and setting
retreiving cookies doesn't work)
2. Use an IP (people behind firewalls or using NAT or other subrouting
appear as same client)
3. Use of GET (people can bookmark cart contents then return and an order
has been fuffilled but shows as new because contents of string are
bookmarked too)

Am I being dense here?

Thanks in advance for any useful comments.

Jul 19 '05 #1
4 2248
CJM
For alternatives for storing sessio state:
http://support.microsoft.com/?kbid=175167

I think the DB version is the most suited to your needs.

Use querystrings to pass a DB Session ID to each page:
//www.mysite.asp?sessionid=12345

Store this session information in a DB.

Regularly cleanout the Sessions table to delete old sessions. [Sessions that
are cobverted to orders are obvioulsy in a serperate table]

hth

Chris

"Jason Burr" <jb***@tameinfo.com> wrote in message
news:KU*******************@news1.news.adelphia.net ...
I was wondering what the best approach to handling a shopping cart was. My
concerns

1. Cookies not accepted (session variables not maintained and setting
retreiving cookies doesn't work)
2. Use an IP (people behind firewalls or using NAT or other subrouting
appear as same client)
3. Use of GET (people can bookmark cart contents then return and an order
has been fuffilled but shows as new because contents of string are
bookmarked too)

Am I being dense here?

Thanks in advance for any useful comments.

Jul 19 '05 #2
> I was wondering what the best approach to handling a shopping cart was. My
concerns

1. Cookies not accepted (session variables not maintained and setting
retreiving cookies doesn't work)


I always find this amusing. Do you think people who don't trust your site
enough to allow a session cookie, are going to fork over their credit card
information?

Anyway, see http://www.aspfaq.com/cart for a very simple example that does
not rely on cookies.

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
Jul 19 '05 #3
The answer to that is a big yes. Alot of people install software that blocks
cookies and they are ignorant to it until sites dont work then they really
dont trust the site and its something that was their doing through
ignorance. I have had plenty of people come to me whining about that very
issue.

I know about the faq and have the example and that falls under my concern
about people behind a cable router using NAT etc. since the example seems to
use the ip of the user for identity. I didn't get in depth with it maybe I
missed something there.
"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:uW**************@tk2msftngp13.phx.gbl...
I was wondering what the best approach to handling a shopping cart was. My concerns

1. Cookies not accepted (session variables not maintained and setting
retreiving cookies doesn't work)


I always find this amusing. Do you think people who don't trust your site
enough to allow a session cookie, are going to fork over their credit card
information?

Anyway, see http://www.aspfaq.com/cart for a very simple example that does
not rely on cookies.

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/

Jul 19 '05 #4
> I know about the faq and have the example and that falls under my concern
about people behind a cable router using NAT etc. since the example seems to use the ip of the user for identity.


No, it does not. I believe it stores the IP address, but that is not used
to uniquely identify users - it is just for logging.

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: madison | last post by:
Hi, I am trying to start a website using paypals shopping cart function. If i have 10 items and they sell out, how do I make it so the item is then listed as sold out. The next person would not...
1
by: Jon | last post by:
Hi, using vb.net/vs 2003/sql server 2000 Working on a shopping cart app. I've got a user control that appears on every page to give a summary of the users shopping cart, eg You have 12 items in...
5
by: l.woods | last post by:
I want your recommendation on which ASP.NET Shopping Cart software I should buy? Best code Best documentation Best support (if needed. I will buying source code, if possible) TIA, Larry...
8
by: Mats Lycken | last post by:
Hi, I'm working on a webproject where I have several different user controls loaded on a WebForm. A problem arises when I in one webcontrol makes a change that should be picked up by another user...
2
by: G.E.M.P | last post by:
High Level Session Handling Design for a Shopping cart 0) What am I missing? 1) How does OSCommerce do it? I'm thinking about building a shopping cart from scratch, using a library of dynamic...
7
by: isaac2004 | last post by:
hi i have a basic asp page that acts as an online bookstore. on my cart page i am having trouble generating 3 numbers; a subtotal, a shipping total, and a final price. here is my code i would...
1
by: jecha | last post by:
I'm implementing a shopping cart but am having a problem in checking out a person who has added item in his/her shopping busket.The code for the checkout.php script is given below <?...
1
by: Dave | last post by:
I have multiple forms that will create an object. Basically a energy efficiency measure object. The measure object will have a couple of required properties set but after that it can have 10-20...
0
by: =?Utf-8?B?RGF2aWQgTG96emk=?= | last post by:
Hello there, What is the best method to capture an abandoned shopping cart in .Net 2.0? I'm using a SQL Session state so Session_End won't work. I thought about storing the shopping cart in the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.