Re: cookie support differences between NN and IE

From: Date: Tue, 15 Aug 2000 20:42:26 +0000
Subject: Re: cookie support differences between NN and IE
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-11876@lists.php.net to get a copy of this message
hi, try <?php //Checking for Cookie Support If(!IsSet($CookieTest)) { If($CookieSecondRun == 1) { echo"Your browser does not support cookies.<BR>You will not be able to log in."; exit(); }Else { SetCookie("CookieTest",1,0,"/","$cookiedomain"); echo"<html><head><meta http-equiv=\"refresh\" content=\"0;URL=login.php3?from=$from&CookieSecondRun=1\"></head></html>"; exit(); } }else { echo"<html><head></head><body>aaa</body></html>"; } ?> your problem is that you dont have any data when the cookie is set already say you've got no else clause and nn dont like this ie dot care about that and generates an empty html-file for you _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/_/ viva technologies _/ gstrein andreas "Always listen to the experts; they'll tell you what can't be done and why. Then do it." - Robert A. Heinlein does anyone have any idea why this code works with IE and not with NN? //Checking for Cookie Support If(!IsSet($CookieTest)) { If($CookieSecondRun == 1) { echo"Your browser does not support cookies.<BR>You will not be able to log in."; exit(); }Else { SetCookie("CookieTest",1,0,"/","$cookiedomain"); echo"<meta http-equiv=refresh content=\"1; URL=login.php3?from=$from&CookieSecondRun=1\">"; exit(); } } berber -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#11876) next »