Re: PHP4 Bug #1793: Cookies behave differently
| From: | Stig Bakken | Date: | Wed, 21 Jul 1999 12:55:21 +0000 |
| Subject: | Re: PHP4 Bug #1793: Cookies behave differently | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-8881@lists.php.net to get a copy of this message | ||
I've had problems with cookies in combination with a Location: header in
Netscape before. What happens if you use an absolute URL for Location?
- Stig
On 21 Jul 1999 gustavo@movi.com.ar wrote:
> From: gustavo@movi.com.ar
> Operating system: Redhat Linux 5.2 intel
> PHP version: 4.0 Beta 1
> PHP Bug Type: Misbehaving function
> Bug description: Cookies behave differently
>
> PHP 4.0b1 compiled inside Apache 1.3.6 + OpenSSL 0.9.3a + mod_ssl 2.3.6-1.3.6
> Netscape Communicator 4.61 Professional/Win98
>
> configure --with-apache=../apache_1.3.6 --enable-track-vars --with-mysql=/usr/local/mysql
> --with-gd=../gd1.3 --with-zlib --with-dbase --with-filepro --with-snmp=/usr --with-bc-math
> --with-config-file-path=/apache/conf
>
> (apache installed at /apache)
>
> *****
> <?
> setcookie("cookie_one","john",0,"/");
> setcookie("cookie_two","doe",0,"/");
> header("Location: start.html");
> exit;
> ?>
> *****
>
> Just the second cookie gets set, the first one does a vanishing act.
>
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>