The one cd34 posted works great, if you dont' mind redirecting pages. I have one piece of code that does the testing through an image instead
On index.php there's an image called image.php
image.php sets a cookie and redirects to image2.php.
image2.php checks if the cookie exist, if not then you have a non-cookie and you can do whatever you want with it.
I'll see if I can find the code.
|