cookie problems
| From: | Kurth Bemis | Date: | Tue, 05 Sep 2000 02:44:55 +0000 |
| Subject: | cookie problems | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-15210@lists.php.net to get a copy of this message | ||
its hard to explain but i'll do the beat that i can
i have a site juneandstorm.com. i wish to have user login and then have the site store their data i na cookie.....i have the login written and the cookie script written - somewhat......
in IE the following works fine...
28: if (isset ($juneandstorm)) {
29: while (list ($name, $value) = each ($juneandstorm)) {
30: echo "$name == $value<br>\n";
31: }
32: }
in netscape i get this error
Warning: Variable passed to each() is not an array or object in /www/juneandstorm/user.php on line 29
with the same code
28: if (isset ($juneandstorm)) {
29: while (list ($name, $value) = each ($juneandstorm)) {
30: echo "$name == $value<br>\n";
31: }
32: }
i'm setting the cookie like this
setcookie ("juneandstorm", $username,time()+3600, "/", ".juneandstorm.com", 0);
because i know the IE and Netscape handle cookies differntly...
if you want to try it use goto http://www.juneandstorm.com/login.php
username test
password phplist
can anyone offer any help?
~kurth
Kurth Bemis - Network/Systems Administrator, USAExpress.net/Ozone Computer
kurth@usaexpress.net
http://www.usaexpress.net/kurth
ICQ - 6624050
Call Sign - N1TYW
PGP key available - http://www.usaexpress.net/kurth/pgp
Fight Weak Encryption! Donate your wasted CPU cycles to Distributed.net (http://www.distributed.net)