Cookie Detection

From: Date: Fri, 23 Jun 2000 17:55:39 +0000
Subject: Cookie Detection
Groups: php.general 
Request: Send a blank email to php-general+get-2821@lists.php.net to get a copy of this message
HI I'm trying to detect if the browser that comes to the site supports cookies by planting one, reloading the page and checking if the cookie was set. While this works great with NN, The same page doesn't do the trick with IE. The code looks like this : //Checking for Cookie Support If(!IsSet($CookieTest)) { If($CookieSecondRun == 1) { echo"Your browser does not support cookies"; exit(); }Else { SetCookie("CookieTest", 1, 0, "/", "$cookiedomain"); echo"<meta http-equiv=refresh content=\"0; URL=test.php3?CookieSecondRun=1\">"; exit(); } } IE gets here even when cookies are disabled and this can't be unless I'm missing something :) berber

« previous php.general (#2821) next »