Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 17th, 2004, 09:00 PM
Authorized User
 
Join Date: Jul 2004
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Default saving shopping cart on users computer...

I am sure this is very basic - but I creating a shopping cart system and I want to save the basket id on the users computer and retrieve it even after there session times out...what is the best and simplest way of handeling this. (both saving that ID and retrieving it later...)

thanks Adina

 
Old November 17th, 2004, 10:03 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Saving:
The only way to save a variable on the clients machine is using cookies (small files that live in the Temporary Internet Files folder). Yes, they have to have cookies enabled for this to work and yes, cookies can be a security issue (IMO not as big as people make out).

Retrieving:
Request.Cookies("Name")

How to save and retrieve cookies:
http://www.asp101.com/tips/index.asp?id=30

Personally the 'only' thing I use cookies for is to:
'check this box to remember my username'

IMO you should get them to log in instead of using cookies, here is a good link on why I think this:
http://builder.com.com/5100-6371-5085802.html


Wind is your friend
Matt





Similar Threads
Thread Thread Starter Forum Replies Last Post
shopping cart keyvanjan Classic ASP Basics 1 January 9th, 2007 10:16 PM
Shopping Cart inkrajesh ASP.NET 1.0 and 1.1 Basics 2 February 28th, 2006 03:08 AM
shopping cart xipnl BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 June 10th, 2005 07:00 PM
Shopping cart Manoj babu General .NET 0 February 14th, 2005 04:20 AM
shopping cart isheikh BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 2 October 8th, 2004 04:20 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.