RE: [PHP] cookie support differences between NN and IE
| From: | Boaz Yahav | Date: | Wed, 16 Aug 2000 13:25:06 +0000 |
| Subject: | RE: [PHP] cookie support differences between NN and IE | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-11971@lists.php.net to get a copy of this message | ||
not really... this is only part of the code.
If the user gets the cookie set is simply goes on
to the rest of the code in the file...
but in NN the user always goes to you
don't have cookie support...
-----Original Message-----
From: viva technologies [mailto:myviva@utanet.at]
Sent: Tuesday, August 15, 2000 10:42 PM
To: Boaz Yahav
Cc: php-general@lists.php.net
Subject: Re: [PHP] cookie support differences between NN and IE
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