the cookie never expires. what is wrong with the login here?
if (isset ($_COOKIE['user_ip']))
{
echo $_COOKIE['user_ip'];
echo "You have already voted once today";
}
else
{
setcookie("user_ip", $_SERVER['REMOTE_ADDR'], time()+300);
insert_poll_count ($poll_options);
}