Anyone know how to utilize cookies properly?

I'm familiar with the setcookie() function but how do I get flash to read what is in the cookie? do I use the echo() function?

I basically have a PHP voting script at my site: and I want to keep naughty users from voting more than once.