Interesting problem with IP & Cart ID's

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

Hello All,

I'm new to this board, I hope that its still used...anyway here goes. I have the script up and working www.websight.com.au/cart

Its just a demo at the moment.

My problem is that some ISP's seem to change the users IP address constantly, probably through their proxy servers. This of course means that carts get lost every time they go to the next link. Anyone got some ideas on fixing this. If you want to know how I did something on my cart drop me an email.

Cheers! Steve

-- Stephen Barwick (stephen_barwick@hotmail.com), October 25, 1999

Answers

Hi,

I know one way...

I made the tmp file instead of using $ENV{'REMOTE_HOST'}; to mark the originality of the tmp file... I made it use a random number instead.. works a charm :o)

eg kwshop-98972378781232 instead of kwshop-127.0.0.1

kewl eh ? and I've only been doing cgi for less than a year

-- Andrew Broadley (andrew@globalexpos.co.nz), November 18, 1999.


I have implemented cookies with my cart. If you are interested to know more, email me at patrickccf@hotmail.com.

--
God bless!

-- Patrick Chan (patrickccf@hotmail.com), March 20, 2000.


Moderation questions? read the FAQ