RE: [PHP-DEV] bugs.php.net missing userid field...
| From: | James Moore | Date: | Sun, 10 Sep 2000 09:45:44 +0000 |
| Subject: | RE: [PHP-DEV] bugs.php.net missing userid field... | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-32814@lists.php.net to get a copy of this message | ||
>
> Joey Smith wrote:
> >
> > Hrm...so it is. Something very odd with my machine, then, because this
> > cookie keeps disappearing. It's not supposed to expire for 5 years, so
> > that's not it...not sure WHAT is going on. Anyways, obviously something
> > at my end. Sorry for the noise, all.
>
> FWIW, I've seen mine vanish as well.
>
> A minor inconvenience, but something to note.... I simply assumed that
> the life of these cookies was kept short for security reasons.
Well Im glad im not the only one with the problem.. Ironically while errata
crawling I found this:
============================================
SetCookie()'s behavior is dependant on where it is called within the web
document tree. For example, setting a cookie from a php script in a
directory makes that cookie available only to other scripts in that
directory and its subdirectories. However, setting a cookie of the same name
from a script in the directory's parent directory will override all cookies
of that name in the parent directory's subdirectories. To better control the
behavior of cookies, you might try sending a raw Set-Cookie: header with the
header() function (see Netscape's cookie spec for information on the
Set-Cookie: header).
============================================
Perhaps this only occurs with certain browsers, I fixed mine by doing what
Zak said with the remember login/password but maybe we need another
setcookie script in the root dir of PHPWEB for those of us with broken
browsers :(
James