if (!($HTTP_COOKIE_VARS['persistent_id'])){ function randomstring($len) { srand(date("s")); while($i<$len) { $str.=chr((rand()%26)+97); $i++; } $str=$str.substr(uniqid (""),0,22); return $str; } $rand_value=randomstring(10); setcookie ("persistent_id", $rand_value ,time()+60*60*24*30*12*10, "/", "www.ibase.co.jp", 0); } ?>