Print Page | Close Window

shopping cat

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=1629
Printed Date: 29 March 2026 at 5:17am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: shopping cat
Posted By: ultramods
Subject: shopping cat
Date Posted: 05 April 2003 at 12:15pm

Just wondering which method people prefer for implementing a shopping basket.

storing the items in the session object.

Or

Storing the items in database.




Replies:
Posted By: michael
Date Posted: 05 April 2003 at 3:23pm
Guess there are advantages and disadvantes for each. If you store it in a database the users can come back later and pick up (maybe he just got disconnected or something) Putting in a session is less strain on the db thus on the server. Personally I like to put them into the db, this way you can run reports on uncompleted orders, which might reveal a trend. So either or works and I guess also much depends on the type of shopping cart.

-------------
http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker


Posted By: ultramods
Date Posted: 06 April 2003 at 4:40am
thanks for the advice there Michael. If you use a db, do you make them og in before they can put anything in the cart, instead of using the session id as the primary key?


Posted By: michael
Date Posted: 06 April 2003 at 5:20pm
What's og

-------------
http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker


Posted By: ultramods
Date Posted: 07 April 2003 at 5:15am
Sorry i meant log in.


Posted By: michael
Date Posted: 07 April 2003 at 8:26am
No, don't make them log in, that would aggtevate a lot. Use some ID like Session ID, IP Address or something. Well IP might be bad as some AOL users might get someone elses product added LOL that wouldn't be fun. So I would put the SessionID, place a cookie with that and if they checkout delete that cookie, if they loose connection and come back look for that cookie.

-------------
http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker


Posted By: ultramods
Date Posted: 07 April 2003 at 9:40am

Sounds good to me.

Thanks Michael.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net