Two IP addresses in tmp file and recalculate doesn't work.

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

When orders are placed from behind a firewall ( a specific one, actually), two files are generated in the tmp file. The shoppers can view the contents of the cart, but when they try to change quantities and recalculate, nothing is updated. Refreshing the screen does nothing.

Everything works fine from other networks...

There are three or four solutions for similar problems listed here, anyone know what the best/easiest one might be? (I am guessing from previous posts that "best" is pretty subjective.)

cookies? REMOTE_HOST to REMOTE_ADDR? Unique ID instead of IP for carts? adding the "$p_id = ($$ % 10000);" to the $host line?

Thanks.

Alex.

-- Alex Maynes (maynes@dsldesigns.net), March 01, 2000

Answers

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.


Thanks Patrick,

I got a cookie-based solution working based on some earlier posts to this board and some other cookie info on some other sites. It is working now.

Alex.

-- Alex Maynes (maynes@dsldesigns.net), March 20, 2000.


Moderation questions? read the FAQ