Re: Cookie Detection

From: Date: Fri, 23 Jun 2000 17:03:26 +0000
Subject: Re: Cookie Detection
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-2825@lists.php.net to get a copy of this message
Stick a phpinfo() tag on the page and have a look at the HTTP Request headers section to see what IE is actually sending. Looks to me like it is actually sending the cookie. Perhaps turning cookies off in IE doesn't stop it from sending old cookies, but just stops it from accepting new ones, and if you tried this before turning cookies off it might still be there. -Rasmus On Fri, 23 Jun 2000, Boaz Yahav wrote: > 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 (#2825) next »