Smellkid wrote:
Hey everybody. I finally got my poll working (with the great help from this forum) but now I'm having trouble with the cookies. For some reason, the voters can vore as many times as they want. I'm not sure what to do from here.
Have you checked \db\poll_cookie.php?
Mine works. But how do I install the correct duration?
global $HTTP_GET_VARS, $HTTP_POST_VARS;
$cookie_expire = 168; // hours
This seems to be clear. I have set it to 1 Week = 168 hours.
At the end of the file is this:
$cookie_name = "AdvancedPoll".$poll_ident;
if (!isset($HTTP_COOKIE_VARS[$cookie_name])) {
$endtime = time()+3600*$cookie_expire;
What is the above line for? What does the 3600 mean? hours? minutes?
Do I have to change it if I want a duration of 1 week?
setcookie($cookie_name, "1", $endtime);
}