We are having complaints on our site about users not being able to log-in and we feel it maybe related to the setting of cookie. Here is the code used. Can anyone give me insight. /* some standard var's or other things like srand */ srand((double)microtime() * 1000000); $includes_root = "$DOCUMENT_ROOT/includes"; $encoded_url = urlencode($REQUEST_URI); if($_COOKIE["cookie_check"] != "Y") { setcookie("cookie_check", "Y", strtotime("+5 years"), "/", "$HTTP_HOST", 0); } if($_COOKIE["current_surfer_id"] == "" AND $_COOKIE["cookie_check"] == "Y") { $current_surfer_id = rand(0, 16777215); setcookie("current_surfer_id", $current_surfer_id, strtotime("+5 years"), "/", "$HTTP_HOST", 0); } -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php