IP ADDRESS DISALLOWINGgreenspun.com : LUSENET : S-Mart Shopping Cart : One Thread |
How can I disallow S-Mart IP address "remembering"? Customers that log in from servers using shared IP addresses, find they have already "ordered" item when they did not.Thanks,
Gustavo
-- Gustavo Arizpe (garizpe@arzp.com), October 18, 1999
Find the following section in the SMART.CGI file:# Get the hostname, for file reference sub get_host { $host = $ENV{'REMOTE_HOST'}; $reffile = "$tmpdir$delim$storename-$host"; }
Replace with the following lines:
# Get the hostname, for file reference sub get_host { $host = $ENV{'REMOTE_HOST'}; $p_id = ($$ % 10000); $reffile = "$tmpdir$delim$storename-$host-$p_id"; }
-- God bless!
-- Patrick Chan (patrickccf@hotmail.com), February 14, 2000.