hi there
im makeing a list in my site .. list of qustions and the users come and answer them
i want to use cookies so the users cant come and answer agane
this is how i do it
$expires = time() + (3600);
setcookie ("do$id",1,"$expires");
where is $id is the number of qustion and $expires is the set the expires date
i have 1 problim
i add 20 qustions now when i asnwer to number 11 there is no problim but when i do it more then 11 i can answer the qustions agane
i dont know how to explane it
lets say i answer from 1 to 11 without anu problim when i answer number 12 the qustion number 1 is open and i can answer it when i answer number 12 and 13 .. number 1 and 2 is open and so on
how i can fix it ? and is there another way to solve it
other qustion is .. about the expiers this line
$expires = time() + (3600);
can anyone explan for how long this cookie will set in the user PC ? and if i want it to stay for month or a year how i can do it ?
waitting for the answer and sorry for my poor english