Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Shopping cart question

 
   Web Hosting and Web Master Forums (Home) -> Webmaster RSS
Next:  just add ".com"  
Author Message
primetlc

External


Since: Aug 11, 2003
Posts: 11



(Msg. 1) Posted: Mon Aug 25, 2003 12:47 pm
Post subject: Shopping cart question
Archived from groups: alt>www>webmaster (more info?)

I'm using ASP to build a database driven shoping site, and everything is
working fine. The data retreival is fast and working exactly the way I want
it to.....
I'm starting to look at the "add to cart" feature now and trying to come up
with ways of making storing values for retreival in a cart.....
I've been thinking of using cookies to do this, but not every browser has
them enabled.....
Has anyone got any alternative suggestions?

 >> Stay informed about: Shopping cart question 
Back to top
Login to vote
spamblock

External


Since: Jul 01, 2003
Posts: 82



(Msg. 2) Posted: Mon Aug 25, 2003 1:01 pm
Post subject: Re: Shopping cart question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Prime Services Ltd wrote:

 > I'm starting to look at the "add to cart" feature now and trying to come
 > up with ways of making storing values for retreival in a cart.....
 > I've been thinking of using cookies to do this, but not every browser has
 > them enabled.....
 > Has anyone got any alternative suggestions?


First, don't store actual information in the cookie. Just store a session id
which on the server allows you to retrieve the data from a database using
that session id.


Another option is URL munging - storing a session ID within the page URL.
Amazon does this, so does macromedia.

The oldest idea is to use a hidden input field in a form to store the
session id. This however limits you to using forms throughout.


--
Iso.
FAQs: <a style='text-decoration: underline;' href="http://html-faq.com" target="_blank">http://html-faq.com</a> <a style='text-decoration: underline;' href="http://alt-html.org" target="_blank">http://alt-html.org</a> <a style='text-decoration: underline;' href="http://allmyfaqs.com/" target="_blank">http://allmyfaqs.com/</a>
Recommended Hosting: <a style='text-decoration: underline;' href="http://www.affordablehost.com/" target="_blank">http://www.affordablehost.com/</a>
Web Standards: <a style='text-decoration: underline;' href="http://www.webstandards.org/" target="_blank">http://www.webstandards.org/</a><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Shopping cart question 
Back to top
Login to vote
primetlc

External


Since: Aug 11, 2003
Posts: 11



(Msg. 3) Posted: Mon Aug 25, 2003 1:14 pm
Post subject: Re: Shopping cart question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Isofarro" <spamblock DeleteThis @spamdetector.co.uk> wrote in message
news:jpmcib.ie1.ln@sidious.isolani.co.uk...
 > Prime Services Ltd wrote:
 >
  > > I'm starting to look at the "add to cart" feature now and trying to come
  > > up with ways of making storing values for retreival in a cart.....
  > > I've been thinking of using cookies to do this, but not every browser
has
  > > them enabled.....
  > > Has anyone got any alternative suggestions?
 >
 >
 > First, don't store actual information in the cookie. Just store a session
id
 > which on the server allows you to retrieve the data from a database using
 > that session id.

Yeah, I was just going to store the order code and quantity in the cookie,
and retreive the rest of the information for the cart from the DB

 > Another option is URL munging - storing a session ID within the page URL.
 > Amazon does this, so does macromedia.

I think this could be the route I need to take.
I had considered setting up anther DB to hold orders, which would get
cleared out once the order was retreived, but I'm not sure if hsi is a good
idea or not. Again, it woudl just hold the order code, quantity and users IP
addy.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Shopping cart question 
Back to top
Login to vote
spamblock

External


Since: Jul 01, 2003
Posts: 82



(Msg. 4) Posted: Mon Aug 25, 2003 1:18 pm
Post subject: Re: Shopping cart question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Prime Services Ltd wrote:

 >
 > "Isofarro" <spamblock DeleteThis @spamdetector.co.uk> wrote in message
 > news:jpmcib.ie1.ln@sidious.isolani.co.uk...
  >> Prime Services Ltd wrote:
  >>
   >> > I'm starting to look at the "add to cart" feature now and trying to
   >> > come up with ways of making storing values for retreival in a cart.....
   >> > I've been thinking of using cookies to do this, but not every browser
 > has
   >> > them enabled.....
   >> > Has anyone got any alternative suggestions?
  >>
  >>
  >> First, don't store actual information in the cookie. Just store a session
 > id
  >> which on the server allows you to retrieve the data from a database using
  >> that session id.
 >
 > Yeah, I was just going to store the order code and quantity in the cookie,
 > and retreive the rest of the information for the cart from the DB

Abstract it further than that. Store just a session ID in the cookie. The
order code and quantity is something that should be stored in a database.


 > I had considered setting up anther DB to hold orders, which would get
 > cleared out once the order was retreived, but I'm not sure if hsi is a
 > good idea or not. Again, it woudl just hold the order code, quantity and
 > users IP addy.

There isn't a consistent one-to-one mapping of users and IP address. that's
why you need a unique identifier like a session id.

One thousand people can all be using one IP address (proxy servers such as
ISPs, businesses and universities), and one visitor could be using six IP
addresses during his visit (AOL's load-balanced proxy servers).


--
Iso.
FAQs: <a style='text-decoration: underline;' href="http://html-faq.com" target="_blank">http://html-faq.com</a> <a style='text-decoration: underline;' href="http://alt-html.org" target="_blank">http://alt-html.org</a> <a style='text-decoration: underline;' href="http://allmyfaqs.com/" target="_blank">http://allmyfaqs.com/</a>
Recommended Hosting: <a style='text-decoration: underline;' href="http://www.affordablehost.com/" target="_blank">http://www.affordablehost.com/</a>
Web Standards: <a style='text-decoration: underline;' href="http://www.webstandards.org/" target="_blank">http://www.webstandards.org/</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Shopping cart question 
Back to top
Login to vote
primetlc

External


Since: Aug 11, 2003
Posts: 11



(Msg. 5) Posted: Mon Aug 25, 2003 1:40 pm
Post subject: Re: Shopping cart question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Isofarro" <spamblock.TakeThisOut@spamdetector.co.uk> wrote in message
news:8pncib.aq1.ln@sidious.isolani.co.uk...
 > Prime Services Ltd wrote:
 >
  > >
  > > "Isofarro" <spamblock.TakeThisOut@spamdetector.co.uk> wrote in message
  > > news:jpmcib.ie1.ln@sidious.isolani.co.uk...
   > >> Prime Services Ltd wrote:
   > >>
   > >> > I'm starting to look at the "add to cart" feature now and trying to
   > >> > come up with ways of making storing values for retreival in a
cart.....
   > >> > I've been thinking of using cookies to do this, but not every browser
  > > has
   > >> > them enabled.....
   > >> > Has anyone got any alternative suggestions?
   > >>
   > >>
   > >> First, don't store actual information in the cookie. Just store a
session
  > > id
   > >> which on the server allows you to retrieve the data from a database
using
   > >> that session id.
  > >
  > > Yeah, I was just going to store the order code and quantity in the
cookie,
  > > and retreive the rest of the information for the cart from the DB
 >
 > Abstract it further than that. Store just a session ID in the cookie. The
 > order code and quantity is something that should be stored in a database.
 >
 >
  > > I had considered setting up anther DB to hold orders, which would get
  > > cleared out once the order was retreived, but I'm not sure if hsi is a
  > > good idea or not. Again, it woudl just hold the order code, quantity and
  > > users IP addy.
 >
 > There isn't a consistent one-to-one mapping of users and IP address.
that's
 > why you need a unique identifier like a session id.
 >
 > One thousand people can all be using one IP address (proxy servers such as
 > ISPs, businesses and universities), and one visitor could be using six IP
 > addresses during his visit (AOL's load-balanced proxy servers).

Session ID's it is then....Cheers Isofaro....<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Shopping cart question 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Shopping Cart - Okay, hate to bring this up again but I'm looking to setup a fairly simple shopping cart for about 20-30 items. I was going to go with paypal's shopping cart but some people don't care for paypal (myself I have had no problem) Can anyone else recommend...

installing shopping cart - Maybe someone could help with installation of Dansie shopping cart. My website up and running for a few months now. I used a WYSIWYG program to build the site. Now I'm trying to install Dansie cart which is provided for free by the host. The installation...

zip question - Hope someone can shed some light on this for me. Thing is im moving servers soon and need to transfer over my databases, I can create the accounts easy enough, and have no problem modifying the databases so things work ok. The problem i have is how do ...

An is it possible question - Hi, I have a membership application form on the Animals in Distress website at http://www.animals-in-distress.net/memapp.htm for people to fill in then print and send with a cheque, I wonder if it is possible to have it place the amount in the Amount...

Domain question - Okay, When I bought my domain, onlyonxbox.net, I had purchased it from a go daddy reseller (the same reseller that was scamming people - websublime.com). Now, the websublime.com site is down and I cannot get in to update my domains information, it's als...
   Web Hosting and Web Master Forums (Home) -> Webmaster All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]