ID: 10884
User Update by: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Variables related
Operating system: HPUX 10.20
PHP Version: 4.0.5
Description: Cookies not set

Okay...

When we set a cookie in a shell script's cgi with echo "Set-Cookie: USER=$USER", we 
MUST replace it with echo "Set-Cookie: USER=$USER ; PATH=/"

Sorry for this false bug...

Bon...

Alors le truc c'est que quand on défini un cookie dans un cgi, on oublie souvent que 
l'on est dans /cgi-bin quand on essaie de récupérer le cookie dans un autre 
script....ajouter PATH=/ après chaque définition de cookie, et on pourra les reprendre 
d'office avec PHP

Je me suis bien arraché les cheveux mis à part ça :P

Désolé pour ce faux bug

@++
JC

Previous Comments:
---------------------------------------------------------------------------

[2001-05-23 00:15:24] [EMAIL PROTECTED]
It's a bug or not ???

---------------------------------------------------------------------------

[2001-05-15 14:48:33] [EMAIL PROTECTED]
Hellow,

Here's a problem with Cookies Management :

When I define several (eg. 3 ) cookies outside php (eg. in a cgi shell-script), the 
HTTP_COOKIE variable is set but not HTTP_COOKIE_VARS array in php.

Then when I define another Cookie with SetCookie with php, HTTP_COOKIE contain all 
Cookies, but HTTP_COOKIE_VARS contains only this Cookie.

An idea ?

---------------------------------------------------------------------------


Full Bug description available at: http://bugs.php.net/?id=10884


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to