954,173 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

help with cookies

i have created this web page with html and php where i need to set cookies to block users voting more then once i have used something like this code:

if (isset($_COOKIE["x"]))
{
echo "You've already voted once!

";
}

but it doesnt work can any one help plz :) :) :)

sam1
Posting Whiz
300 posts since Nov 2004
Reputation Points: 10
Solved Threads: 1
 

i had this same problem. make sure to set the TTL in your call to setcookie().

SmoothDime
Newbie Poster
2 posts since Jan 2005
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You