// GENERATE A NEW SESSION
function generate_session_id ($aid) {
global $user_ip;
$today=date("Y-m-d");
$sess = md5(uniqid(microtime(),1));
$db = new ps_DB;
$q = "INSERT INTO login SET
login_id = '$sess',
login_logged = 'N',
login_affiliate_id = '$aid',
login_date = '$today'";
$db->query($q);
return ($sess);
}
The code above is for a shopping cart. The problem is that it uses ip to keep track of users stuff and if somebody else comes in using the same ip, it thinks it him.
Is there a way to stop this.
thanks
The_broken
😕