Re: where is http_cookie ?
| From: | Bas Jobsen | Date: | Sat, 16 Mar 2002 19:35:39 +0000 |
| Subject: | Re: where is http_cookie ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-88769@lists.php.net to get a copy of this message | ||
Hi,
Well okay. But now i'm using this code:
test.php (http://www.tgp2stats.com/test.php):
--
<?
$test="bas";
session_start();
session_register("test");
header("Location: test2.php");
?>
--
test2.php (http://www.tgp2stats.com/test2.php):
--
<?
session_start();
session_register("test");
echo "test: ".$test;
phpinfo();
?>
--
For netscape(linux) $test print "bas", but is empty when using Konquerer,
Opera or even IE (on a win98 system).
This code will work for all this browsers with php4.1.2 as module.
Has this something to do with CGI vs module? Or is there a configuration
mistake?
Bas
Op zaterdag 16 maart 2002 18:02, schreef Jackson Miller:
> HTTP COOKIE will only be set
> if you have a cookie from that
> domain on your computer. Try
> setting a cookie with
> setcookie() before your
> phpinfo() line on your
> test.php page.
>
> Hope this helps.
>
>
> -Jackson
>
> -----Original Message-----
> From: Bas Jobsen
> [mailto:bas@startpunt.cc]
> Sent: Saturday, March 16, 2002
> 11:36 AM
> To: PHP General
> Subject: [PHP] where is
> http_cookie ?
>
>
> Hello,
>
> I have installed php 4.1.2. as
> a cgi module.
> But http_cookie isn't set. I
> don' know whats wrong.
> You can find the output of
> phpinfo() at
> http://www.tgp2stats.com/test.
> php
>
> Tnx,
>
> Bas Jobsen
>
> --
> PHP General Mailing List
> (http://www.php.net/)
> To unsubscribe, visit:
> http://www.php.net/unsub.php