Interesting problem with IP & Cart ID's : 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

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 (, October 25, 1999



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-

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

-- Andrew Broadley (, November 18, 1999.

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

God bless!

-- Patrick Chan (, March 20, 2000.

Moderation questions? read the FAQ