No Cookie Redirect

Hi Chaps,

Quick question on this one, I’ve got a <noscript> tag in my HTML to check to see if Javascipt in enabled, but how do you check to see if cookies are enabled?
Is there HTML code / PHP function, or do you simply try to set a cookie and redirect on failure to read the cookie you just to to set?

Cheers

afaik there is no function to check if cookies are set
I always do something like this


if (!isset($_COOKIE['cookietest']))
{
  if (!isset($_GET['check'])
  {
    setcookie('cookietest', true, time() + 3600);
    header('Location: /index.php?check=1');
  }
  else
  {
     echo 'Cookies not enabled!';
  }
}