php cookie
php cookie
Out of context: Reply #3
- Started
- Last post
- 3 Responses
- cosmo0
well, I'm checking the next load. Now, the cookie never seems to expire. What is wrong with the logic 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...
}