Can the new S-Mart from WebStore work with AOL?

greenspun.com : LUSENET : S-Mart Shopping Cart : One Thread

I am constantly having complaints from AOL'ers that when they go to check out that their cart is empty!

Please help!

-- CJ Kaplan (reptile@reptilemall.com), May 13, 2000

Answers

I have not implemented a "non-cookie" solution for AOL shoppers, but I had a similar problem early on in configuring my S-Mart: only one cart (called "store1-") was being created in my /tmp folder even as multiple people were on and shopping. The contents of our carts were getting intermixed. I finally figured out that i was getting a null value for $ENV{'REMOTE_HOST'} so I changed my get_host sub to the following...

sub get_host { $host = $ENV{'REMOTE_ADDR'}; $reffile = "$tmpdir$delim$storename-$host"; } ... and it worked.

So having said that; and I beleieve that the problem with AOL users is that you can't get the REMOTE_HOST or REMOTE_ADDR IP addresses, I am planning to take this approach....

sub get_host { if $ENV{'REMOTE_ADDR'} eq "" #or something like that { $host = "AOLORDER"+ a random number # I'll have to generate a random number, maybe base it on the date and time??? { else { $host = $ENV{'REMOTE_ADDR'}; } $reffile = "$tmpdir$delim$storename-$host"; }

This should work in theory, right?

~

-- Richard Dominguez (richard@y3ki.com), June 09, 2000.


Nice theory, but as I understand it the problem is that the ip changes all the time with aol and you will have the same problem with someone behind a firewall. The only way around it is to use cookies to identify the shopper.

-- Lyndon Lininger Sr. (llininge@mddc.com), June 10, 2000.

Moderation questions? read the FAQ