469,352 Members | 1,697 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,352 developers. It's quick & easy.

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 2113
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by madison | last post: by
1 post views Thread by Jon | last post: by
5 posts views Thread by l.woods | last post: by
8 posts views Thread by Mats Lycken | last post: by
2 posts views Thread by G.E.M.P | last post: by
1 post views Thread by jecha | last post: by
reply views Thread by =?Utf-8?B?RGF2aWQgTG96emk=?= | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.