AW: [PHP] Re: Detection of no cookies?

From: Date: Thu, 12 Jul 2001 12:56:26 +0000
Subject: AW: [PHP] Re: Detection of no cookies?
Groups: php.general 
Request: Send a blank email to php-general+get-57583@lists.php.net to get a copy of this message
that does not work since cookie will just be available on the next page.. try tesp.php <? if (!(isset(cookietest))) { setcookie(blahblah...); //new request, so cookie will be send to server header("Location: test.php?cookietest=yes"); exit; } else { if (sizeof($HTTP_COOKIE_VARS)<1) { die ("I WANT COOKIES!!!!"); } } should do it... > a hack could be just to try to set one, like > > if (setcookie(...)) { > "the user has cookies"; > } else { > echo "No cookies"; > exit; > }

« previous php.general (#57583) next »