Bug #10884 Updated: Cookies not set
| From: | mad at dactar dot ch | Date: | Wed, 23 May 2001 20:51:05 +0000 |
| Subject: | Bug #10884 Updated: Cookies not set | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-56538@lists.php.net to get a copy of this message | ||
ID: 10884
User Update by: mad@dactar.ch
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] mad@dactar.ch
It's a bug or not ???
---------------------------------------------------------------------------
[2001-05-15 14:48:33] mad@dactar.ch
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